#2951BA#2951BA
#2951BA is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.172 H 264.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2951BA |
|---|---|
| RGB | rgb(41, 81, 186) |
| HSL | hsl(223, 64%, 45%) |
| HSV | hsv(223, 78%, 73%) |
| CMYK | cmyk(78%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(37.66, 24.43, -59.36) |
| CIE-LCH | lch(37.66, 64.19, 292.37°) |
| OKLab | oklab(47.15% -0.0158 -0.1713) |
| OKLCH | oklch(47.15% 0.172 264.7) |
| XYZ | xyz(12.7167, 9.9000, 47.6855) |
| Luminance | 0.0990 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.00
Cobalt
#0047AB
ΔE00 4.11
Blue Blue
#2242C7
ΔE00 5.22
Denim
#1560BD
ΔE00 6.13
Denim Blue
#3B5B92
ΔE00 6.25
Blue (survey)
#0343DF
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2951BA #BA9229
analogous
#299ABA #2951BA #4929BA
triadic
#2951BA #BA2951 #51BA29
tetradic
#2951BA #BA299A #BA9229 #29BA49
square
#2951BA #BA299A #BA9229 #29BA49
split-complementary
#2951BA #BA4929 #9ABA29
monochromatic
#132556 #1E3B88 #2951BA #4970D7 #7B98E2
Accessibility & contrast
On white
7.05
#2951BA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#2951BA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2951BA
7.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2951BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2951BA | 1.00 | 7.05 | 2.98 | 7.05 |
| #FFFFFF | 7.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959
Design tokens & code
CSS
--color: #2951ba; /* rgb */ color: rgb(41, 81, 186); /* oklch */ color: oklch(47.1% 0.172 264.7);
Tailwind
colors: {
custom: {
50: '#7981d0',
500: '#2951ba',
950: '#000000',
},
}SCSS
$custom: #2951ba; $custom-light: #7981d0; $custom-dark: #000000;
JSON
{
"hex": "#2951ba",
"rgb": {
"r": 41,
"g": 81,
"b": 186
},
"hsl": {
"h": 223.448,
"s": 63.877,
"l": 44.51
},
"oklch": {
"l": 0.47148,
"c": 0.17205,
"h": 264.7
},
"luminance": 0.09901
}Semantic roles & 50–950 ramp
primary
#2951BA
secondary
#CAB375
accent
#B941E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82