#2942A2#2942A2
#2942A2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.158 H 267.8°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).
Color values
| HEX | #2942A2 |
|---|---|
| RGB | rgb(41, 66, 162) |
| HSL | hsl(228, 60%, 40%) |
| HSV | hsv(228, 75%, 64%) |
| CMYK | cmyk(74.7%, 59.3%, 0%, 36.5%) |
| CIE-LAB | lab(31.75, 25.25, -54.71) |
| CIE-LCH | lch(31.75, 60.26, 294.78°) |
| OKLab | oklab(42.12% -0.0061 -0.1579) |
| OKLCH | oklch(42.12% 0.158 267.8) |
| XYZ | xyz(9.3820, 6.9755, 35.0274) |
| Luminance | 0.0698 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.47
Sapphire (survey)
#2138AB
ΔE00 3.50
Cobalt (survey)
#1E488F
ΔE00 4.78
Blueberry
#464196
ΔE00 4.99
Blue Blue
#2242C7
ΔE00 5.06
Sapphire
#0F52BA
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2942A2 #A28929
analogous
#297FA2 #2942A2 #4C29A2
triadic
#2942A2 #A22942 #42A229
tetradic
#2942A2 #A2297F #A28929 #29A24C
square
#2942A2 #A2297F #A28929 #29A24C
split-complementary
#2942A2 #A24C29 #7FA229
monochromatic
#101A40 #1D2E71 #2942A2 #3B59CD #6C82DA
Accessibility & contrast
On white
8.77
#2942A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#2942A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2942A2
8.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2942A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2942A2 | 1.00 | 8.77 | 2.40 | 8.77 |
| #FFFFFF | 8.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.77 | 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: #2942a2; /* rgb */ color: rgb(41, 66, 162); /* oklch */ color: oklch(42.1% 0.158 267.8);
Tailwind
colors: {
custom: {
50: '#7576be',
500: '#2942a2',
950: '#000000',
},
}SCSS
$custom: #2942a2; $custom-light: #7576be; $custom-dark: #000000;
JSON
{
"hex": "#2942a2",
"rgb": {
"r": 41,
"g": 66,
"b": 162
},
"hsl": {
"h": 227.603,
"s": 59.606,
"l": 39.804
},
"oklch": {
"l": 0.42121,
"c": 0.15801,
"h": 267.8
},
"luminance": 0.06976
}Semantic roles & 50–950 ramp
primary
#2942A2
secondary
#C0AE67
accent
#C245E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81