#42408B#42408B
#42408B is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.121 H 280.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).
Color values
| HEX | #42408B |
|---|---|
| RGB | rgb(66, 64, 139) |
| HSL | hsl(242, 37%, 40%) |
| HSV | hsv(242, 54%, 55%) |
| CMYK | cmyk(52.5%, 54%, 0%, 45.5%) |
| CIE-LAB | lab(31.09, 22.71, -41.69) |
| CIE-LCH | lch(31.09, 47.48, 298.58°) |
| OKLab | oklab(41.5% 0.023 -0.119) |
| OKLCH | oklch(41.5% 0.121 280.9) |
| XYZ | xyz(8.7389, 6.6886, 25.2516) |
| Luminance | 0.0669 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 1.90
Blueberry
#464196
ΔE00 1.97
Twilight
#4E518B
ΔE00 5.81
Sapphire (survey)
#2138AB
ΔE00 6.86
Ocean Blue
#4F42B5
ΔE00 6.99
Cobalt (survey)
#1E488F
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42408B #898B40
analogous
#40648B #42408B #68408B
triadic
#42408B #8B4240 #408B42
tetradic
#42408B #8B4064 #898B40 #408B68
square
#42408B #8B4064 #898B40 #408B68
split-complementary
#42408B #8B6840 #648B40
monochromatic
#1A1937 #2E2D61 #42408B #5957B2 #8281C5
Accessibility & contrast
On white
8.98
#42408B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#42408B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42408B
8.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42408B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42408B | 1.00 | 8.98 | 2.34 | 8.98 |
| #FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#184C8E
Deuteranopia (green-blind)
#104689
Tritanopia (blue-blind)
#25515F
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #42408b; /* rgb */ color: rgb(66, 64, 139); /* oklch */ color: oklch(41.5% 0.121 280.9);
Tailwind
colors: {
custom: {
50: '#7c75ad',
500: '#42408b',
950: '#000000',
},
}SCSS
$custom: #42408b; $custom-light: #7c75ad; $custom-dark: #000000;
JSON
{
"hex": "#42408b",
"rgb": {
"r": 66,
"g": 64,
"b": 139
},
"hsl": {
"h": 241.6,
"s": 36.946,
"l": 39.804
},
"oklch": {
"l": 0.41498,
"c": 0.12118,
"h": 280.9
},
"luminance": 0.06689
}Semantic roles & 50–950 ramp
primary
#42408B
secondary
#AEAF78
accent
#CD5BCA
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F