#42407C#42407C
#42407C is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.4% C 0.099 H 282.6°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #42407C |
|---|---|
| RGB | rgb(66, 64, 124) |
| HSL | hsl(242, 32%, 37%) |
| HSV | hsv(242, 48%, 49%) |
| CMYK | cmyk(46.8%, 48.4%, 0%, 51.4%) |
| CIE-LAB | lab(30.11, 17.77, -33.95) |
| CIE-LCH | lch(30.11, 38.32, 297.63°) |
| OKLab | oklab(40.45% 0.0214 -0.0962) |
| OKLCH | oklch(40.45% 0.099 282.6) |
| XYZ | xyz(7.7172, 6.2799, 19.8704) |
| Luminance | 0.0628 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.67
Blueberry
#464196
ΔE00 4.88
Twilight
#4E518B
ΔE00 5.55
Dusk
#4E5481
ΔE00 6.84
Cobalt (survey)
#1E488F
ΔE00 8.72
Sapphire (survey)
#2138AB
ΔE00 9.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42407C #7A7C40
analogous
#405C7C #42407C #60407C
triadic
#42407C #7C4240 #407C42
tetradic
#42407C #7C405C #7A7C40 #407C60
square
#42407C #7C405C #7A7C40 #407C60
split-complementary
#42407C #7C6040 #5C7C40
monochromatic
#17162B #2D2B54 #42407C #5755A4 #7D7BBB
Accessibility & contrast
On white
9.31
#42407C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#42407C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42407C
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42407C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42407C | 1.00 | 9.31 | 2.26 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28497E
Deuteranopia (green-blind)
#25457B
Tritanopia (blue-blind)
#2F4C58
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #42407c; /* rgb */ color: rgb(66, 64, 124); /* oklch */ color: oklch(40.4% 0.099 282.6);
Tailwind
colors: {
custom: {
50: '#7a74a2',
500: '#42407c',
950: '#000000',
},
}SCSS
$custom: #42407c; $custom-light: #7a74a2; $custom-dark: #000000;
JSON
{
"hex": "#42407c",
"rgb": {
"r": 66,
"g": 64,
"b": 124
},
"hsl": {
"h": 242,
"s": 31.915,
"l": 36.863
},
"oklch": {
"l": 0.40446,
"c": 0.0986,
"h": 282.6
},
"luminance": 0.0628
}Semantic roles & 50–950 ramp
primary
#42407C
secondary
#A4A672
accent
#C860C5
background
#F7F7FA
surface
#EEEDF3
border
#C9C8CD
text
#09080F
muted
#7B7B7F