Recognised as Colour
#340F6B
- #340F6B
- Violet
- Dark
- Nearest: Midnight blue
#340F6B is a violet with RGB values 52, 15, 107 and HSL 264°, 75%, 24%. It is a dark colour, so white text on it reaches 14.7:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#340F6B#340F6B
HEX#340F6B
RGBrgb(52, 15, 107)
RGB (0–1)0.2039, 0.0588, 0.4196
RGB percentages20.4%, 5.9%, 42%
HSLhsl(264.1, 75.4%, 23.9%)
HSV / HSBhsv(264.1, 86%, 42%)
CMYK51.4%, 86%, 0%, 58%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,411,819
CSS custom property--colour: #340F6B;
Brightness & contrast
Relative luminance0.02133WCAG 2.x, 0 is black and 1 is white
Perceived brightness47.4 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 14.72:1
Contrast with white14.72:1WCAG normal text: AAA
Contrast with black1.43:1WCAG normal text: Fail
Greyscale equivalent#1E1E1E
Inverted#CBF094
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text14.72:1WCAG large text: AAA
Contrast with black, large text1.43:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#466B0F
Analogous#0F186B, #620F6B
Triadic#6B340F, #0F6B34
Split complementary#6B620F, #186B0F
Tetradic#6B0F18, #466B0F, #0F6B62
Tints, shades & saturation
Channel breakdown
R52
G15
B107
Red52 (20.4%)
Green15 (5.9%)
Blue107 (42%)
Hue264.13°
Saturation (HSL)75.41%
Lightness23.92%
Dominant channelBlue
Hex per channelR 34 · G 0F · B 6B
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page