#2940B3#2940B3
#2940B3 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.183 H 268.5°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).
Color values
| HEX | #2940B3 |
|---|---|
| RGB | rgb(41, 64, 179) |
| HSL | hsl(230, 63%, 43%) |
| HSV | hsv(230, 77%, 70%) |
| CMYK | cmyk(77.1%, 64.2%, 0%, 29.8%) |
| CIE-LAB | lab(32.68, 32.95, -63.36) |
| CIE-LCH | lch(32.68, 71.41, 297.48°) |
| OKLab | oklab(43.26% -0.0049 -0.1833) |
| OKLCH | oklch(43.26% 0.183 268.5) |
| XYZ | xyz(10.8817, 7.3917, 43.4923) |
| Luminance | 0.0739 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.50
Blue Blue
#2242C7
ΔE00 2.64
Cobalt
#0047AB
ΔE00 4.60
Ocean Blue
#4F42B5
ΔE00 4.95
Blue (survey)
#0343DF
ΔE00 5.49
Blueberry
#464196
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2940B3 #B39C29
analogous
#2985B3 #2940B3 #5729B3
triadic
#2940B3 #B32940 #40B329
tetradic
#2940B3 #B32985 #B39C29 #29B357
square
#2940B3 #B32985 #B39C29 #29B357
split-complementary
#2940B3 #B35729 #85B329
monochromatic
#121C4F #1E2E81 #2940B3 #455DD4 #7788E0
Accessibility & contrast
On white
8.47
#2940B3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.48
#2940B3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2940B3
8.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2940B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2940B3 | 1.00 | 8.47 | 2.48 | 8.47 |
| #FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0046B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2940b3; /* rgb */ color: rgb(41, 64, 179); /* oklch */ color: oklch(43.3% 0.183 268.5);
Tailwind
colors: {
custom: {
50: '#7974cb',
500: '#2940b3',
950: '#000000',
},
}SCSS
$custom: #2940b3; $custom-light: #7974cb; $custom-dark: #000000;
JSON
{
"hex": "#2940b3",
"rgb": {
"r": 41,
"g": 64,
"b": 179
},
"hsl": {
"h": 230,
"s": 62.727,
"l": 43.137
},
"oklch": {
"l": 0.4326,
"c": 0.18333,
"h": 268.5
},
"luminance": 0.07393
}Semantic roles & 50–950 ramp
primary
#2940B3
secondary
#C7B970
accent
#CA42E6
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82