#42487F#42487F
#42487F is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.4% C 0.091 H 277.1°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).
Color values
| HEX | #42487F |
|---|---|
| RGB | rgb(66, 72, 127) |
| HSL | hsl(234, 32%, 38%) |
| HSV | hsv(234, 48%, 50%) |
| CMYK | cmyk(48%, 43.3%, 0%, 50.2%) |
| CIE-LAB | lab(32.54, 13.46, -31.96) |
| CIE-LCH | lch(32.54, 34.67, 292.84°) |
| OKLab | oklab(42.35% 0.0112 -0.0904) |
| OKLCH | oklch(42.35% 0.091 277.1) |
| XYZ | xyz(8.3937, 7.3248, 21.0461) |
| Luminance | 0.0732 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Twilight
#4E518B
ΔE00 3.45
Dusk
#4E5481
ΔE00 4.41
Darkslateblue
#483D8B
ΔE00 5.58
Blueberry
#464196
ΔE00 5.65
Cobalt (survey)
#1E488F
ΔE00 7.12
Denim Blue
#3B5B92
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42487F #7F7942
analogous
#42667F #42487F #5A427F
triadic
#42487F #7F4248 #487F42
tetradic
#42487F #7F4266 #7F7942 #427F5A
square
#42487F #7F4266 #7F7942 #427F5A
split-complementary
#42487F #7F5A42 #667F42
monochromatic
#181A2E #2D3157 #42487F #575FA7 #7F85BC
Accessibility & contrast
On white
8.52
#42487F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#42487F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42487F
8.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42487F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42487F | 1.00 | 8.52 | 2.47 | 8.52 |
| #FFFFFF | 8.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#334F81
Deuteranopia (green-blind)
#2E4A7E
Tritanopia (blue-blind)
#2C535D
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #42487f; /* rgb */ color: rgb(66, 72, 127); /* oklch */ color: oklch(42.4% 0.091 277.1);
Tailwind
colors: {
custom: {
50: '#7a7aa4',
500: '#42487f',
950: '#000000',
},
}SCSS
$custom: #42487f; $custom-light: #7a7aa4; $custom-dark: #000000;
JSON
{
"hex": "#42487f",
"rgb": {
"r": 66,
"g": 72,
"b": 127
},
"hsl": {
"h": 234.098,
"s": 31.606,
"l": 37.843
},
"oklch": {
"l": 0.4235,
"c": 0.09106,
"h": 277.1
},
"luminance": 0.07325
}Semantic roles & 50–950 ramp
primary
#42487F
secondary
#A7A275
accent
#BE60C8
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F