#42407E#42407E
#42407E is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.6% C 0.102 H 282.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).
Color values
| HEX | #42407E |
|---|---|
| RGB | rgb(66, 64, 126) |
| HSL | hsl(242, 33%, 37%) |
| HSV | hsv(242, 49%, 49%) |
| CMYK | cmyk(47.6%, 49.2%, 0%, 50.6%) |
| CIE-LAB | lab(30.23, 18.42, -35.00) |
| CIE-LCH | lch(30.23, 39.55, 297.76°) |
| OKLab | oklab(40.58% 0.0217 -0.0993) |
| OKLCH | oklch(40.58% 0.102 282.3) |
| XYZ | xyz(7.8449, 6.3310, 20.5433) |
| Luminance | 0.0633 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.31
Blueberry
#464196
ΔE00 4.46
Twilight
#4E518B
ΔE00 5.50
Dusk
#4E5481
ΔE00 6.95
Cobalt (survey)
#1E488F
ΔE00 8.53
Sapphire (survey)
#2138AB
ΔE00 9.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42407E #7C7E40
analogous
#405D7E #42407E #61407E
triadic
#42407E #7E4240 #407E42
tetradic
#42407E #7E405D #7C7E40 #407E61
square
#42407E #7E405D #7C7E40 #407E61
split-complementary
#42407E #7E6140 #5D7E40
monochromatic
#17172D #2D2B55 #42407E #5755A7 #7E7CBC
Accessibility & contrast
On white
9.27
#42407E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#42407E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42407E
9.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42407E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42407E | 1.00 | 9.27 | 2.27 | 9.27 |
| #FFFFFF | 9.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#264980
Deuteranopia (green-blind)
#23457D
Tritanopia (blue-blind)
#2E4D59
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #42407e; /* rgb */ color: rgb(66, 64, 126); /* oklch */ color: oklch(40.6% 0.102 282.3);
Tailwind
colors: {
custom: {
50: '#7a74a4',
500: '#42407e',
950: '#000000',
},
}SCSS
$custom: #42407e; $custom-light: #7a74a4; $custom-dark: #000000;
JSON
{
"hex": "#42407e",
"rgb": {
"r": 66,
"g": 64,
"b": 126
},
"hsl": {
"h": 241.935,
"s": 32.632,
"l": 37.255
},
"oklch": {
"l": 0.40581,
"c": 0.10167,
"h": 282.3
},
"luminance": 0.06331
}Semantic roles & 50–950 ramp
primary
#42407E
secondary
#A5A773
accent
#C95FC5
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F