Recognised as Colour
#342B40
- #342B40
- Violet
- Dark
- Nearest: Black
#342B40 is a violet with RGB values 52, 43, 64 and HSL 266°, 20%, 21%. It is a dark colour, so white text on it reaches 13.4:1 contrast (AAA for normal text). The nearest named colour is Black.
Colour values
#342B40#342B40
HEX#342B40
RGBrgb(52, 43, 64)
RGB (0–1)0.2039, 0.1686, 0.251
RGB percentages20.4%, 16.9%, 25.1%
HSLhsl(265.7, 19.6%, 21%)
HSV / HSBhsv(265.7, 32.8%, 25.1%)
CMYK18.8%, 32.8%, 0%, 74.9%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer3,418,944
CSS custom property--colour: #342B40;
Brightness & contrast
Relative luminance0.02828WCAG 2.x, 0 is black and 1 is white
Perceived brightness48.6 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 13.41:1
Contrast with white13.41:1WCAG normal text: AAA
Contrast with black1.57:1WCAG normal text: Fail
Greyscale equivalent#2E2E2E
Inverted#CBD4BF
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text13.41:1WCAG large text: AAA
Contrast with black, large text1.57:1WCAG large text: Fail
Named colours
Hue familyviolet
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#37402B
Analogous#2B2C40, #3F2B40
Triadic#40342B, #2B4034
Split complementary#403F2B, #2D402B
Tetradic#402B2C, #37402B, #2B403F
Tints, shades & saturation
Channel breakdown
R52
G43
B64
Red52 (20.4%)
Green43 (16.9%)
Blue64 (25.1%)
Hue265.71°
Saturation (HSL)19.63%
Lightness20.98%
Dominant channelBlue
Hex per channelR 34 · G 2B · B 40
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