#2940A2#2940A2
#2940A2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.161 H 268.4°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2940A2 |
|---|---|
| RGB | rgb(41, 64, 162) |
| HSL | hsl(229, 60%, 40%) |
| HSV | hsv(229, 75%, 64%) |
| CMYK | cmyk(74.7%, 60.5%, 0%, 36.5%) |
| CIE-LAB | lab(31.22, 26.59, -55.57) |
| CIE-LCH | lch(31.22, 61.61, 295.57°) |
| OKLab | oklab(41.73% -0.0046 -0.1604) |
| OKLCH | oklch(41.73% 0.161 268.4) |
| XYZ | xyz(9.2672, 6.7459, 34.9891) |
| Luminance | 0.0675 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.89
Cobalt
#0047AB
ΔE00 3.99
Blueberry
#464196
ΔE00 4.79
Blue Blue
#2242C7
ΔE00 5.01
Cobalt (survey)
#1E488F
ΔE00 5.31
Ocean Blue
#4F42B5
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2940A2 #A28B29
analogous
#297DA2 #2940A2 #4F29A2
triadic
#2940A2 #A22940 #40A229
tetradic
#2940A2 #A2297D #A28B29 #29A24F
square
#2940A2 #A2297D #A28B29 #29A24F
split-complementary
#2940A2 #A24F29 #7DA229
monochromatic
#101940 #1D2D71 #2940A2 #3B57CD #6C81DA
Accessibility & contrast
On white
8.94
#2940A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#2940A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2940A2
8.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2940A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2940A2 | 1.00 | 8.94 | 2.35 | 8.94 |
| #FFFFFF | 8.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2940a2; /* rgb */ color: rgb(41, 64, 162); /* oklch */ color: oklch(41.7% 0.161 268.4);
Tailwind
colors: {
custom: {
50: '#7574be',
500: '#2940a2',
950: '#000000',
},
}SCSS
$custom: #2940a2; $custom-light: #7574be; $custom-dark: #000000;
JSON
{
"hex": "#2940a2",
"rgb": {
"r": 41,
"g": 64,
"b": 162
},
"hsl": {
"h": 228.595,
"s": 59.606,
"l": 39.804
},
"oklch": {
"l": 0.41727,
"c": 0.16052,
"h": 268.4
},
"luminance": 0.06747
}Semantic roles & 50–950 ramp
primary
#2940A2
secondary
#C0AF67
accent
#C545E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81