#42417C#42417C
#42417C is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.7% C 0.097 H 281.9°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).
Color values
| HEX | #42417C |
|---|---|
| RGB | rgb(66, 65, 124) |
| HSL | hsl(241, 31%, 37%) |
| HSV | hsv(241, 48%, 49%) |
| CMYK | cmyk(46.8%, 47.6%, 0%, 51.4%) |
| CIE-LAB | lab(30.38, 17.11, -33.51) |
| CIE-LCH | lch(30.38, 37.62, 297.05°) |
| OKLab | oklab(40.66% 0.0201 -0.0949) |
| OKLCH | oklch(40.66% 0.097 281.9) |
| XYZ | xyz(7.7741, 6.3937, 19.8894) |
| Luminance | 0.0639 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.92
Blueberry
#464196
ΔE00 4.98
Twilight
#4E518B
ΔE00 5.26
Dusk
#4E5481
ΔE00 6.50
Cobalt (survey)
#1E488F
ΔE00 8.53
Sapphire (survey)
#2138AB
ΔE00 9.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42417C #7B7C41
analogous
#415E7C #42417C #60417C
triadic
#42417C #7C4241 #417C42
tetradic
#42417C #7C415E #7B7C41 #417C60
square
#42417C #7C415E #7B7C41 #417C60
split-complementary
#42417C #7C6041 #5E7C41
monochromatic
#17172C #2D2C54 #42417C #5756A4 #7E7DBB
Accessibility & contrast
On white
9.22
#42417C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#42417C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42417C
9.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42417C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42417C | 1.00 | 9.22 | 2.28 | 9.22 |
| #FFFFFF | 9.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#294A7E
Deuteranopia (green-blind)
#26457B
Tritanopia (blue-blind)
#2F4D58
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #42417c; /* rgb */ color: rgb(66, 65, 124); /* oklch */ color: oklch(40.7% 0.097 281.9);
Tailwind
colors: {
custom: {
50: '#7a75a2',
500: '#42417c',
950: '#000000',
},
}SCSS
$custom: #42417c; $custom-light: #7a75a2; $custom-dark: #000000;
JSON
{
"hex": "#42417c",
"rgb": {
"r": 66,
"g": 65,
"b": 124
},
"hsl": {
"h": 241.017,
"s": 31.217,
"l": 37.059
},
"oklch": {
"l": 0.40656,
"c": 0.09704,
"h": 281.9
},
"luminance": 0.06394
}Semantic roles & 50–950 ramp
primary
#42417C
secondary
#A5A573
accent
#C760C6
background
#F7F7FA
surface
#EEEDF3
border
#C9C8CD
text
#09080F
muted
#7B7B7F