#42398F#42398F
#42398F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.137 H 283.1°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).
Color values
| HEX | #42398F |
|---|---|
| RGB | rgb(66, 57, 143) |
| HSL | hsl(246, 43%, 39%) |
| HSV | hsv(246, 60%, 56%) |
| CMYK | cmyk(53.8%, 60.1%, 0%, 43.9%) |
| CIE-LAB | lab(29.58, 28.57, -46.59) |
| CIE-LCH | lch(29.58, 54.65, 301.52°) |
| OKLab | oklab(40.47% 0.0312 -0.1334) |
| OKLCH | oklch(40.47% 0.137 283.1) |
| XYZ | xyz(8.6663, 6.0672, 26.6957) |
| Luminance | 0.0607 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 1.87
Blueberry
#464196
ΔE00 2.47
Sapphire (survey)
#2138AB
ΔE00 5.90
Ocean Blue
#4F42B5
ΔE00 6.34
Rebeccapurple
#663399
ΔE00 7.58
Twilight
#4E518B
ΔE00 8.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42398F #868F39
analogous
#395B8F #42398F #6D398F
triadic
#42398F #8F4239 #398F42
tetradic
#42398F #8F395B #868F39 #398F6D
square
#42398F #8F395B #868F39 #398F6D
split-complementary
#42398F #8F6D39 #5B8F39
monochromatic
#1A1637 #2E2863 #42398F #584DB8 #8179CA
Accessibility & contrast
On white
9.49
#42398F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.21
#42398F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42398F
9.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42398F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42398F | 1.00 | 9.49 | 2.21 | 9.49 |
| #FFFFFF | 9.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.21 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#224D5E
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #42398f; /* rgb */ color: rgb(66, 57, 143); /* oklch */ color: oklch(40.5% 0.137 283.1);
Tailwind
colors: {
custom: {
50: '#7d70b0',
500: '#42398f',
950: '#000000',
},
}SCSS
$custom: #42398f; $custom-light: #7d70b0; $custom-dark: #000000;
JSON
{
"hex": "#42398f",
"rgb": {
"r": 66,
"g": 57,
"b": 143
},
"hsl": {
"h": 246.279,
"s": 43,
"l": 39.216
},
"oklch": {
"l": 0.40472,
"c": 0.13703,
"h": 283.1
},
"luminance": 0.06068
}Semantic roles & 50–950 ramp
primary
#42398F
secondary
#ACB371
accent
#D355C6
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0A0711
muted
#7C7A80