#2940AF#2940AF
#2940AF is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.178 H 268.5°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2940AF |
|---|---|
| RGB | rgb(41, 64, 175) |
| HSL | hsl(230, 62%, 42%) |
| HSV | hsv(230, 77%, 69%) |
| CMYK | cmyk(76.6%, 63.4%, 0%, 31.4%) |
| CIE-LAB | lab(32.33, 31.47, -61.56) |
| CIE-LCH | lch(32.33, 69.13, 297.07°) |
| OKLab | oklab(42.89% -0.0047 -0.178) |
| OKLCH | oklch(42.89% 0.178 268.5) |
| XYZ | xyz(10.4830, 7.2322, 41.3926) |
| Luminance | 0.0723 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.36
Blue Blue
#2242C7
ΔE00 3.18
Cobalt
#0047AB
ΔE00 4.35
Ocean Blue
#4F42B5
ΔE00 5.17
Blueberry
#464196
ΔE00 5.47
Blue (survey)
#0343DF
ΔE00 6.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2940AF #AF9829
analogous
#2983AF #2940AF #5529AF
triadic
#2940AF #AF2940 #40AF29
tetradic
#2940AF #AF2983 #AF9829 #29AF55
square
#2940AF #AF2983 #AF9829 #29AF55
split-complementary
#2940AF #AF5529 #83AF29
monochromatic
#121C4C #1D2E7D #2940AF #425BD3 #7486DE
Accessibility & contrast
On white
8.58
#2940AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#2940AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2940AF
8.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2940AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2940AF | 1.00 | 8.58 | 2.45 | 8.58 |
| #FFFFFF | 8.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2940af; /* rgb */ color: rgb(41, 64, 175); /* oklch */ color: oklch(42.9% 0.178 268.5);
Tailwind
colors: {
custom: {
50: '#7874c8',
500: '#2940af',
950: '#000000',
},
}SCSS
$custom: #2940af; $custom-light: #7874c8; $custom-dark: #000000;
JSON
{
"hex": "#2940af",
"rgb": {
"r": 41,
"g": 64,
"b": 175
},
"hsl": {
"h": 229.701,
"s": 62.037,
"l": 42.353
},
"oklch": {
"l": 0.42891,
"c": 0.17805,
"h": 268.5
},
"luminance": 0.07233
}Semantic roles & 50–950 ramp
primary
#2940AF
secondary
#C6B76E
accent
#C943E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82