#2851BA#2851BA
#2851BA is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.172 H 264.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2851BA |
|---|---|
| RGB | rgb(40, 81, 186) |
| HSL | hsl(223, 65%, 44%) |
| HSV | hsv(223, 78%, 73%) |
| CMYK | cmyk(78.5%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(37.63, 24.32, -59.42) |
| CIE-LCH | lch(37.63, 64.21, 292.26°) |
| OKLab | oklab(47.11% -0.0166 -0.1715) |
| OKLCH | oklch(47.11% 0.172 264.5) |
| XYZ | xyz(12.6773, 9.8797, 47.6837) |
| Luminance | 0.0988 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.90
Cobalt
#0047AB
ΔE00 4.06
Blue Blue
#2242C7
ΔE00 5.26
Denim
#1560BD
ΔE00 6.08
Denim Blue
#3B5B92
ΔE00 6.23
Blue (survey)
#0343DF
ΔE00 6.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2851BA #BA9128
analogous
#289ABA #2851BA #4828BA
triadic
#2851BA #BA2851 #51BA28
tetradic
#2851BA #BA289A #BA9128 #28BA48
square
#2851BA #BA289A #BA9128 #28BA48
split-complementary
#2851BA #BA4828 #9ABA28
monochromatic
#122555 #1D3B88 #2851BA #4870D8 #7A97E2
Accessibility & contrast
On white
7.06
#2851BA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.98
#2851BA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2851BA
7.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2851BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2851BA | 1.00 | 7.06 | 2.98 | 7.06 |
| #FFFFFF | 7.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.06 | 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: #2851ba; /* rgb */ color: rgb(40, 81, 186); /* oklch */ color: oklch(47.1% 0.172 264.5);
Tailwind
colors: {
custom: {
50: '#7981d0',
500: '#2851ba',
950: '#000000',
},
}SCSS
$custom: #2851ba; $custom-light: #7981d0; $custom-dark: #000000;
JSON
{
"hex": "#2851ba",
"rgb": {
"r": 40,
"g": 81,
"b": 186
},
"hsl": {
"h": 223.151,
"s": 64.602,
"l": 44.314
},
"oklch": {
"l": 0.4711,
"c": 0.17231,
"h": 264.5
},
"luminance": 0.09881
}Semantic roles & 50–950 ramp
primary
#2851BA
secondary
#CAB273
accent
#B940E8
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82