#2940AD#2940AD
#2940AD is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.175 H 268.5°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).
Color values
| HEX | #2940AD |
|---|---|
| RGB | rgb(41, 64, 173) |
| HSL | hsl(230, 62%, 42%) |
| HSV | hsv(230, 76%, 68%) |
| CMYK | cmyk(76.3%, 63%, 0%, 32.2%) |
| CIE-LAB | lab(32.16, 30.72, -60.65) |
| CIE-LCH | lch(32.16, 67.99, 296.86°) |
| OKLab | oklab(42.71% -0.0047 -0.1753) |
| OKLCH | oklch(42.71% 0.175 268.5) |
| XYZ | xyz(10.2881, 7.1542, 40.3658) |
| Luminance | 0.0716 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.34
Blue Blue
#2242C7
ΔE00 3.45
Cobalt
#0047AB
ΔE00 4.25
Ocean Blue
#4F42B5
ΔE00 5.31
Blueberry
#464196
ΔE00 5.33
Blue (survey)
#0343DF
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2940AD #AD9629
analogous
#2982AD #2940AD #5429AD
triadic
#2940AD #AD2940 #40AD29
tetradic
#2940AD #AD2982 #AD9629 #29AD54
square
#2940AD #AD2982 #AD9629 #29AD54
split-complementary
#2940AD #AD5429 #82AD29
monochromatic
#121B4A #1D2E7C #2940AD #415AD2 #7385DE
Accessibility & contrast
On white
8.64
#2940AD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#2940AD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2940AD
8.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2940AD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2940AD | 1.00 | 8.64 | 2.43 | 8.64 |
| #FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0046AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2940ad; /* rgb */ color: rgb(41, 64, 173); /* oklch */ color: oklch(42.7% 0.175 268.5);
Tailwind
colors: {
custom: {
50: '#7774c6',
500: '#2940ad',
950: '#000000',
},
}SCSS
$custom: #2940ad; $custom-light: #7774c6; $custom-dark: #000000;
JSON
{
"hex": "#2940ad",
"rgb": {
"r": 41,
"g": 64,
"b": 173
},
"hsl": {
"h": 229.545,
"s": 61.682,
"l": 41.961
},
"oklch": {
"l": 0.42709,
"c": 0.17539,
"h": 268.5
},
"luminance": 0.07155
}Semantic roles & 50–950 ramp
primary
#2940AD
secondary
#C5B66D
accent
#C943E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82