#42478B#42478B
#42478B is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.9% C 0.111 H 277.5°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).
Color values
| HEX | #42478B |
|---|---|
| RGB | rgb(66, 71, 139) |
| HSL | hsl(236, 36%, 40%) |
| HSV | hsv(236, 53%, 55%) |
| CMYK | cmyk(52.5%, 48.9%, 0%, 45.5%) |
| CIE-LAB | lab(32.98, 18.11, -38.66) |
| CIE-LCH | lch(32.98, 42.69, 295.10°) |
| OKLab | oklab(42.92% 0.0144 -0.11) |
| OKLCH | oklch(42.92% 0.111 277.5) |
| XYZ | xyz(9.1587, 7.5283, 25.3916) |
| Luminance | 0.0753 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.44
Twilight
#4E518B
ΔE00 3.78
Darkslateblue
#483D8B
ΔE00 4.15
Dusk
#4E5481
ΔE00 5.89
Cobalt (survey)
#1E488F
ΔE00 6.41
Ocean Blue
#4F42B5
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42478B #8B8642
analogous
#426C8B #42478B #61428B
triadic
#42478B #8B4247 #478B42
tetradic
#42478B #8B426C #8B8642 #428B61
square
#42478B #8B426C #8B8642 #428B61
split-complementary
#42478B #8B6142 #6C8B42
monochromatic
#1B1D38 #2E3262 #42478B #5A60B1 #8388C4
Accessibility & contrast
On white
8.38
#42478B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#42478B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42478B
8.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42478B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42478B | 1.00 | 8.38 | 2.51 | 8.38 |
| #FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#29518D
Deuteranopia (green-blind)
#214B8A
Tritanopia (blue-blind)
#245662
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #42478b; /* rgb */ color: rgb(66, 71, 139); /* oklch */ color: oklch(42.9% 0.111 277.5);
Tailwind
colors: {
custom: {
50: '#7c7aad',
500: '#42478b',
950: '#000000',
},
}SCSS
$custom: #42478b; $custom-light: #7c7aad; $custom-dark: #000000;
JSON
{
"hex": "#42478b",
"rgb": {
"r": 66,
"g": 71,
"b": 139
},
"hsl": {
"h": 235.89,
"s": 35.61,
"l": 40.196
},
"oklch": {
"l": 0.42924,
"c": 0.11095,
"h": 277.5
},
"luminance": 0.07529
}Semantic roles & 50–950 ramp
primary
#42478B
secondary
#AFAB7A
accent
#C45CCC
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0910
muted
#7C7B7F