#2842A3#2842A3
#2842A3 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.160 H 267.5°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2842A3 |
|---|---|
| RGB | rgb(40, 66, 163) |
| HSL | hsl(227, 61%, 40%) |
| HSV | hsv(227, 75%, 64%) |
| CMYK | cmyk(75.5%, 59.5%, 0%, 36.1%) |
| CIE-LAB | lab(31.79, 25.51, -55.26) |
| CIE-LCH | lch(31.79, 60.86, 294.78°) |
| OKLab | oklab(42.16% -0.007 -0.1595) |
| OKLCH | oklch(42.16% 0.16 267.5) |
| XYZ | xyz(9.4318, 6.9909, 35.4955) |
| Luminance | 0.0699 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.37
Sapphire (survey)
#2138AB
ΔE00 3.44
Cobalt (survey)
#1E488F
ΔE00 4.81
Blue Blue
#2242C7
ΔE00 4.93
Blueberry
#464196
ΔE00 5.11
Sapphire
#0F52BA
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2842A3 #A38928
analogous
#2880A3 #2842A3 #4C28A3
triadic
#2842A3 #A32842 #42A328
tetradic
#2842A3 #A32880 #A38928 #28A34C
square
#2842A3 #A32880 #A38928 #28A34C
split-complementary
#2842A3 #A34C28 #80A328
monochromatic
#101A41 #1C2E72 #2842A3 #3A59CF #6B82DB
Accessibility & contrast
On white
8.76
#2842A3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#2842A3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2842A3
8.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2842A3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2842A3 | 1.00 | 8.76 | 2.40 | 8.76 |
| #FFFFFF | 8.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #2842a3; /* rgb */ color: rgb(40, 66, 163); /* oklch */ color: oklch(42.2% 0.160 267.5);
Tailwind
colors: {
custom: {
50: '#7476bf',
500: '#2842a3',
950: '#000000',
},
}SCSS
$custom: #2842a3; $custom-light: #7476bf; $custom-dark: #000000;
JSON
{
"hex": "#2842a3",
"rgb": {
"r": 40,
"g": 66,
"b": 163
},
"hsl": {
"h": 227.317,
"s": 60.591,
"l": 39.804
},
"oklch": {
"l": 0.4216,
"c": 0.15966,
"h": 267.5
},
"luminance": 0.06992
}Semantic roles & 50–950 ramp
primary
#2842A3
secondary
#C1AE66
accent
#C244E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81