Recognised as Colour
#340C47
- #340C47
- Violet
- Dark
- Nearest: Midnight blue
#340C47 is a violet with RGB values 52, 12, 71 and HSL 281°, 71%, 16%. It is a dark colour, so white text on it reaches 16.3:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#340C47#340C47
HEX#340C47
RGBrgb(52, 12, 71)
RGB (0–1)0.2039, 0.0471, 0.2784
RGB percentages20.4%, 4.7%, 27.8%
HSLhsl(280.7, 71.1%, 16.3%)
HSV / HSBhsv(280.7, 83.1%, 27.8%)
CMYK26.8%, 83.1%, 0%, 72.2%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,411,015
CSS custom property--colour: #340C47;
Brightness & contrast
Relative luminance0.01448WCAG 2.x, 0 is black and 1 is white
Perceived brightness38.3 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 16.28:1
Contrast with white16.28:1WCAG normal text: AAA
Contrast with black1.29:1WCAG normal text: Fail
Greyscale equivalent#191919
Inverted#CBF3B8
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text16.28:1WCAG large text: AAA
Contrast with black, large text1.29:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#1F470C
Analogous#160C47, #470C3D
Triadic#47340C, #0C4734
Split complementary#3D470C, #0C4716
Tetradic#47160C, #1F470C, #0C3D47
Tints, shades & saturation
Channel breakdown
R52
G12
B71
Red52 (20.4%)
Green12 (4.7%)
Blue71 (27.8%)
Hue280.68°
Saturation (HSL)71.08%
Lightness16.27%
Dominant channelBlue
Hex per channelR 34 · G 0C · B 47
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