#42398C#42398C
#42398C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.133 H 283.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).
Color values
| HEX | #42398C |
|---|---|
| RGB | rgb(66, 57, 140) |
| HSL | hsl(247, 42%, 39%) |
| HSV | hsv(247, 59%, 55%) |
| CMYK | cmyk(52.9%, 59.3%, 0%, 45.1%) |
| CIE-LAB | lab(29.36, 27.59, -45.10) |
| CIE-LCH | lch(29.36, 52.87, 301.45°) |
| OKLab | oklab(40.23% 0.0312 -0.1291) |
| OKLCH | oklch(40.23% 0.133 283.6) |
| XYZ | xyz(8.4421, 5.9775, 25.5148) |
| Luminance | 0.0598 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 1.59
Blueberry
#464196
ΔE00 2.65
Sapphire (survey)
#2138AB
ΔE00 6.33
Ocean Blue
#4F42B5
ΔE00 6.79
Rebeccapurple
#663399
ΔE00 7.70
Twilight
#4E518B
ΔE00 8.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42398C #838C39
analogous
#39598C #42398C #6B398C
triadic
#42398C #8C4239 #398C42
tetradic
#42398C #8C3959 #838C39 #398C6B
square
#42398C #8C3959 #838C39 #398C6B
split-complementary
#42398C #8C6B39 #598C39
monochromatic
#191635 #2D2761 #42398C #584CB6 #8078C8
Accessibility & contrast
On white
9.56
#42398C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.20
#42398C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42398C
9.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42398C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42398C | 1.00 | 9.56 | 2.20 | 9.56 |
| #FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#254C5D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #42398c; /* rgb */ color: rgb(66, 57, 140); /* oklch */ color: oklch(40.2% 0.133 283.6);
Tailwind
colors: {
custom: {
50: '#7d6fae',
500: '#42398c',
950: '#000000',
},
}SCSS
$custom: #42398c; $custom-light: #7d6fae; $custom-dark: #000000;
JSON
{
"hex": "#42398c",
"rgb": {
"r": 66,
"g": 57,
"b": 140
},
"hsl": {
"h": 246.506,
"s": 42.132,
"l": 38.627
},
"oklch": {
"l": 0.40234,
"c": 0.13279,
"h": 283.6
},
"luminance": 0.05978
}Semantic roles & 50–950 ramp
primary
#42398C
secondary
#AAB170
accent
#D256C4
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F