#2940B0#2940B0
#2940B0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.179 H 268.5°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2940B0 |
|---|---|
| RGB | rgb(41, 64, 176) |
| HSL | hsl(230, 62%, 43%) |
| HSV | hsv(230, 77%, 69%) |
| CMYK | cmyk(76.7%, 63.6%, 0%, 31%) |
| CIE-LAB | lab(32.42, 31.84, -62.01) |
| CIE-LCH | lch(32.42, 69.70, 297.18°) |
| OKLab | oklab(42.98% -0.0048 -0.1793) |
| OKLCH | oklch(42.98% 0.179 268.5) |
| XYZ | xyz(10.5816, 7.2716, 41.9118) |
| Luminance | 0.0727 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.38
Blue Blue
#2242C7
ΔE00 3.04
Cobalt
#0047AB
ΔE00 4.41
Ocean Blue
#4F42B5
ΔE00 5.11
Blueberry
#464196
ΔE00 5.55
Blue (survey)
#0343DF
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2940B0 #B09929
analogous
#2983B0 #2940B0 #5629B0
triadic
#2940B0 #B02940 #40B029
tetradic
#2940B0 #B02983 #B09929 #29B056
square
#2940B0 #B02983 #B09929 #29B056
split-complementary
#2940B0 #B05629 #83B029
monochromatic
#121C4D #1D2E7E #2940B0 #435CD3 #7587DF
Accessibility & contrast
On white
8.56
#2940B0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#2940B0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2940B0
8.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2940B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2940B0 | 1.00 | 8.56 | 2.45 | 8.56 |
| #FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2940b0; /* rgb */ color: rgb(41, 64, 176); /* oklch */ color: oklch(43.0% 0.179 268.5);
Tailwind
colors: {
custom: {
50: '#7874c9',
500: '#2940b0',
950: '#000000',
},
}SCSS
$custom: #2940b0; $custom-light: #7874c9; $custom-dark: #000000;
JSON
{
"hex": "#2940b0",
"rgb": {
"r": 41,
"g": 64,
"b": 176
},
"hsl": {
"h": 229.778,
"s": 62.212,
"l": 42.549
},
"oklch": {
"l": 0.42983,
"c": 0.17938,
"h": 268.5
},
"luminance": 0.07273
}Semantic roles & 50–950 ramp
primary
#2940B0
secondary
#C6B76F
accent
#CA43E5
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82