Recognised as Colour
#340B4B
- #340B4B
- Violet
- Dark
- Nearest: Midnight blue
#340B4B is a violet with RGB values 52, 11, 75 and HSL 278°, 74%, 17%. It is a dark colour, so white text on it reaches 16.2:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#340B4B#340B4B
HEX#340B4B
RGBrgb(52, 11, 75)
RGB (0–1)0.2039, 0.0431, 0.2941
RGB percentages20.4%, 4.3%, 29.4%
HSLhsl(278.4, 74.4%, 16.9%)
HSV / HSBhsv(278.4, 85.3%, 29.4%)
CMYK30.7%, 85.3%, 0%, 70.6%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,410,763
CSS custom property--colour: #340B4B;
Brightness & contrast
Relative luminance0.01477WCAG 2.x, 0 is black and 1 is white
Perceived brightness39 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 16.21:1
Contrast with white16.21:1WCAG normal text: AAA
Contrast with black1.3:1WCAG normal text: Fail
Greyscale equivalent#181818
Inverted#CBF4B4
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text16.21:1WCAG large text: AAA
Contrast with black, large text1.3:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#224B0B
Analogous#140B4B, #4B0B42
Triadic#4B340B, #0B4B34
Split complementary#424B0B, #0B4B14
Tetradic#4B140B, #224B0B, #0B424B
Tints, shades & saturation
Channel breakdown
R52
G11
B75
Red52 (20.4%)
Green11 (4.3%)
Blue75 (29.4%)
Hue278.44°
Saturation (HSL)74.42%
Lightness16.86%
Dominant channelBlue
Hex per channelR 34 · G 0B · B 4B
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