#42407B#42407B
#42407B is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.4% C 0.097 H 282.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).
Color values
| HEX | #42407B |
|---|---|
| RGB | rgb(66, 64, 123) |
| HSL | hsl(242, 32%, 37%) |
| HSV | hsv(242, 48%, 48%) |
| CMYK | cmyk(46.3%, 48%, 0%, 51.8%) |
| CIE-LAB | lab(30.05, 17.44, -33.42) |
| CIE-LCH | lch(30.05, 37.70, 297.56°) |
| OKLab | oklab(40.38% 0.0213 -0.0947) |
| OKLCH | oklch(40.38% 0.097 282.7) |
| XYZ | xyz(7.6543, 6.2548, 19.5390) |
| Luminance | 0.0625 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.86
Blueberry
#464196
ΔE00 5.10
Twilight
#4E518B
ΔE00 5.59
Dusk
#4E5481
ΔE00 6.80
Cobalt (survey)
#1E488F
ΔE00 8.82
Sapphire (survey)
#2138AB
ΔE00 9.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42407B #797B40
analogous
#405C7B #42407B #60407B
triadic
#42407B #7B4240 #407B42
tetradic
#42407B #7B405C #797B40 #407B60
square
#42407B #7B405C #797B40 #407B60
split-complementary
#42407B #7B6040 #5C7B40
monochromatic
#17162A #2C2B53 #42407B #5855A3 #7D7BBA
Accessibility & contrast
On white
9.33
#42407B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#42407B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42407B
9.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42407B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42407B | 1.00 | 9.33 | 2.25 | 9.33 |
| #FFFFFF | 9.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28497D
Deuteranopia (green-blind)
#26457A
Tritanopia (blue-blind)
#304C57
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #42407b; /* rgb */ color: rgb(66, 64, 123); /* oklch */ color: oklch(40.4% 0.097 282.7);
Tailwind
colors: {
custom: {
50: '#7a74a1',
500: '#42407b',
950: '#000000',
},
}SCSS
$custom: #42407b; $custom-light: #7a74a1; $custom-dark: #000000;
JSON
{
"hex": "#42407b",
"rgb": {
"r": 66,
"g": 64,
"b": 123
},
"hsl": {
"h": 242.034,
"s": 31.551,
"l": 36.667
},
"oklch": {
"l": 0.4038,
"c": 0.09707,
"h": 282.7
},
"luminance": 0.06255
}Semantic roles & 50–950 ramp
primary
#42407B
secondary
#A3A572
accent
#C860C4
background
#F7F7FA
surface
#EEEDF3
border
#C9C8CD
text
#09080F
muted
#7B7B7F