#42397B#42397B
#42397B is a dark, moderate blue. Relative luminance 0.055; OKLCH L 39.0% C 0.108 H 286.5°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).
Color values
| HEX | #42397B |
|---|---|
| RGB | rgb(66, 57, 123) |
| HSL | hsl(248, 37%, 35%) |
| HSV | hsv(248, 54%, 48%) |
| CMYK | cmyk(46.3%, 53.7%, 0%, 51.8%) |
| CIE-LAB | lab(28.15, 22.07, -36.45) |
| CIE-LCH | lch(28.15, 42.61, 301.19°) |
| OKLab | oklab(38.96% 0.0307 -0.1036) |
| OKLCH | oklch(38.96% 0.108 286.5) |
| XYZ | xyz(7.2840, 5.5143, 19.4156) |
| Luminance | 0.0551 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 2.98
Blueberry
#464196
ΔE00 5.02
Twilight
#4E518B
ΔE00 7.69
Rebeccapurple
#663399
ΔE00 9.02
Dusk
#4E5481
ΔE00 9.15
Sapphire (survey)
#2138AB
ΔE00 9.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42397B #727B39
analogous
#39517B #42397B #63397B
triadic
#42397B #7B4239 #397B42
tetradic
#42397B #7B3951 #727B39 #397B63
square
#42397B #7B3951 #727B39 #397B63
split-complementary
#42397B #7B6339 #517B39
monochromatic
#151227 #2C2651 #42397B #584CA5 #7C71BD
Accessibility & contrast
On white
9.99
#42397B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.10
#42397B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42397B
9.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42397B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42397B | 1.00 | 9.99 | 2.10 | 9.99 |
| #FFFFFF | 9.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B447D
Deuteranopia (green-blind)
#1A417A
Tritanopia (blue-blind)
#304754
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #42397b; /* rgb */ color: rgb(66, 57, 123); /* oklch */ color: oklch(39.0% 0.108 286.5);
Tailwind
colors: {
custom: {
50: '#7a6fa2',
500: '#42397b',
950: '#000000',
},
}SCSS
$custom: #42397b; $custom-light: #7a6fa2; $custom-dark: #000000;
JSON
{
"hex": "#42397b",
"rgb": {
"r": 66,
"g": 57,
"b": 123
},
"hsl": {
"h": 248.182,
"s": 36.667,
"l": 35.294
},
"oklch": {
"l": 0.38956,
"c": 0.10805,
"h": 286.5
},
"luminance": 0.05515
}Semantic roles & 50–950 ramp
primary
#42397B
secondary
#9EA669
accent
#CD5BBD
background
#F7F6FA
surface
#EEECF3
border
#C9C7CD
text
#09070F
muted
#7B7A7F