#42427F#42427F
#42427F is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.1% C 0.100 H 281.1°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).
Color values
| HEX | #42427F |
|---|---|
| RGB | rgb(66, 66, 127) |
| HSL | hsl(240, 32%, 38%) |
| HSV | hsv(240, 48%, 50%) |
| CMYK | cmyk(48%, 48%, 0%, 50.2%) |
| CIE-LAB | lab(30.85, 17.42, -34.64) |
| CIE-LCH | lch(30.85, 38.78, 296.70°) |
| OKLab | oklab(41.07% 0.0192 -0.0983) |
| OKLCH | oklch(41.07% 0.1 281.1) |
| XYZ | xyz(8.0246, 6.5866, 20.9231) |
| Luminance | 0.0659 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.67
Blueberry
#464196
ΔE00 4.48
Twilight
#4E518B
ΔE00 4.90
Dusk
#4E5481
ΔE00 6.34
Cobalt (survey)
#1E488F
ΔE00 8.06
Sapphire (survey)
#2138AB
ΔE00 9.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42427F #7F7F42
analogous
#42607F #42427F #60427F
triadic
#42427F #7F4242 #427F42
tetradic
#42427F #7F4260 #7F7F42 #427F60
square
#42427F #7F4260 #7F7F42 #427F60
split-complementary
#42427F #7F6042 #607F42
monochromatic
#18182E #2D2D57 #42427F #5757A7 #7F7FBC
Accessibility & contrast
On white
9.06
#42427F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.32
#42427F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42427F
9.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42427F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42427F | 1.00 | 9.06 | 2.32 | 9.06 |
| #FFFFFF | 9.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#294B81
Deuteranopia (green-blind)
#25467E
Tritanopia (blue-blind)
#2D4F5A
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #42427f; /* rgb */ color: rgb(66, 66, 127); /* oklch */ color: oklch(41.1% 0.100 281.1);
Tailwind
colors: {
custom: {
50: '#7a76a4',
500: '#42427f',
950: '#000000',
},
}SCSS
$custom: #42427f; $custom-light: #7a76a4; $custom-dark: #000000;
JSON
{
"hex": "#42427f",
"rgb": {
"r": 66,
"g": 66,
"b": 127
},
"hsl": {
"h": 240,
"s": 31.606,
"l": 37.843
},
"oklch": {
"l": 0.41065,
"c": 0.10013,
"h": 281.1
},
"luminance": 0.06587
}Semantic roles & 50–950 ramp
primary
#42427F
secondary
#A7A775
accent
#C860C8
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F