#42428B#42428B
#42428B is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.9% C 0.118 H 280.0°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).
Color values
| HEX | #42428B |
|---|---|
| RGB | rgb(66, 66, 139) |
| HSL | hsl(240, 36%, 40%) |
| HSV | hsv(240, 53%, 55%) |
| CMYK | cmyk(52.5%, 52.5%, 0%, 45.5%) |
| CIE-LAB | lab(31.62, 21.40, -40.84) |
| CIE-LCH | lch(31.62, 46.10, 297.65°) |
| OKLab | oklab(41.9% 0.0206 -0.1165) |
| OKLCH | oklch(41.9% 0.118 280) |
| XYZ | xyz(8.8537, 6.9183, 25.2899) |
| Luminance | 0.0692 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 2.22
Darkslateblue
#483D8B
ΔE00 2.48
Twilight
#4E518B
ΔE00 5.20
Sapphire (survey)
#2138AB
ΔE00 7.10
Ocean Blue
#4F42B5
ΔE00 7.13
Dusk
#4E5481
ΔE00 7.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#42428B #8B8B42
analogous
#42668B #42428B #66428B
triadic
#42428B #8B4242 #428B42
tetradic
#42428B #8B4266 #8B8B42 #428B66
square
#42428B #8B4266 #8B8B42 #428B66
split-complementary
#42428B #8B6642 #668B42
monochromatic
#1B1B38 #2E2E62 #42428B #5A5AB1 #8383C4
Accessibility & contrast
On white
8.81
#42428B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#42428B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #42428B
8.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##42428B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##42428B | 1.00 | 8.81 | 2.38 | 8.81 |
| #FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E4D8E
Deuteranopia (green-blind)
#164889
Tritanopia (blue-blind)
#245260
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #42428b; /* rgb */ color: rgb(66, 66, 139); /* oklch */ color: oklch(41.9% 0.118 280.0);
Tailwind
colors: {
custom: {
50: '#7c76ad',
500: '#42428b',
950: '#000000',
},
}SCSS
$custom: #42428b; $custom-light: #7c76ad; $custom-dark: #000000;
JSON
{
"hex": "#42428b",
"rgb": {
"r": 66,
"g": 66,
"b": 139
},
"hsl": {
"h": 240,
"s": 35.61,
"l": 40.196
},
"oklch": {
"l": 0.41898,
"c": 0.11826,
"h": 280
},
"luminance": 0.06919
}Semantic roles & 50–950 ramp
primary
#42428B
secondary
#AFAF7A
accent
#CC5CCC
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0810
muted
#7C7B7F