#2842A2#2842A2
#2842A2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.158 H 267.5°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2842A2 |
|---|---|
| RGB | rgb(40, 66, 162) |
| HSL | hsl(227, 60%, 40%) |
| HSV | hsv(227, 75%, 64%) |
| CMYK | cmyk(75.3%, 59.3%, 0%, 36.5%) |
| CIE-LAB | lab(31.70, 25.13, -54.79) |
| CIE-LCH | lch(31.70, 60.28, 294.64°) |
| OKLab | oklab(42.07% -0.007 -0.1581) |
| OKLCH | oklch(42.07% 0.158 267.5) |
| XYZ | xyz(9.3426, 6.9552, 35.0255) |
| Luminance | 0.0696 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.38
Sapphire (survey)
#2138AB
ΔE00 3.52
Cobalt (survey)
#1E488F
ΔE00 4.70
Blue Blue
#2242C7
ΔE00 5.08
Blueberry
#464196
ΔE00 5.09
Sapphire
#0F52BA
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2842A2 #A28828
analogous
#287FA2 #2842A2 #4B28A2
triadic
#2842A2 #A22842 #42A228
tetradic
#2842A2 #A2287F #A28828 #28A24B
square
#2842A2 #A2287F #A28828 #28A24B
split-complementary
#2842A2 #A24B28 #7FA228
monochromatic
#101A40 #1C2E71 #2842A2 #3959CE #6A82DA
Accessibility & contrast
On white
8.78
#2842A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#2842A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2842A2
8.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2842A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2842A2 | 1.00 | 8.78 | 2.39 | 8.78 |
| #FFFFFF | 8.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2842a2; /* rgb */ color: rgb(40, 66, 162); /* oklch */ color: oklch(42.1% 0.158 267.5);
Tailwind
colors: {
custom: {
50: '#7476be',
500: '#2842a2',
950: '#000000',
},
}SCSS
$custom: #2842a2; $custom-light: #7476be; $custom-dark: #000000;
JSON
{
"hex": "#2842a2",
"rgb": {
"r": 40,
"g": 66,
"b": 162
},
"hsl": {
"h": 227.213,
"s": 60.396,
"l": 39.608
},
"oklch": {
"l": 0.42074,
"c": 0.15828,
"h": 267.5
},
"luminance": 0.06956
}Semantic roles & 50–950 ramp
primary
#2842A2
secondary
#C1AD65
accent
#C244E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81