#2851AF#2851AF
#2851AF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.157 H 263.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).
Color values
| HEX | #2851AF |
|---|---|
| RGB | rgb(40, 81, 175) |
| HSL | hsl(222, 63%, 42%) |
| HSV | hsv(222, 77%, 69%) |
| CMYK | cmyk(77.1%, 53.7%, 0%, 31.4%) |
| CIE-LAB | lab(36.80, 20.09, -54.28) |
| CIE-LCH | lch(36.80, 57.88, 290.31°) |
| OKLab | oklab(46.23% -0.0174 -0.1564) |
| OKLCH | oklch(46.23% 0.157 263.6) |
| XYZ | xyz(11.5526, 9.4298, 41.7604) |
| Luminance | 0.0943 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 1.86
Cobalt
#0047AB
ΔE00 3.43
Dusk Blue
#26538D
ΔE00 4.98
Cobalt (survey)
#1E488F
ΔE00 5.05
Denim Blue
#3B5B92
ΔE00 5.17
Denim
#1560BD
ΔE00 5.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2851AF #AF8628
analogous
#2895AF #2851AF #4328AF
triadic
#2851AF #AF2851 #51AF28
tetradic
#2851AF #AF2895 #AF8628 #28AF43
square
#2851AF #AF2895 #AF8628 #28AF43
split-complementary
#2851AF #AF4328 #95AF28
monochromatic
#11234B #1D3A7D #2851AF #416DD4 #7393DF
Accessibility & contrast
On white
7.28
#2851AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#2851AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2851AF
7.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2851AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2851AF | 1.00 | 7.28 | 2.89 | 7.28 |
| #FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#075DB2
Deuteranopia (green-blind)
#0051AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #2851af; /* rgb */ color: rgb(40, 81, 175); /* oklch */ color: oklch(46.2% 0.157 263.6);
Tailwind
colors: {
custom: {
50: '#7681c8',
500: '#2851af',
950: '#000000',
},
}SCSS
$custom: #2851af; $custom-light: #7681c8; $custom-dark: #000000;
JSON
{
"hex": "#2851af",
"rgb": {
"r": 40,
"g": 81,
"b": 175
},
"hsl": {
"h": 221.778,
"s": 62.791,
"l": 42.157
},
"oklch": {
"l": 0.46225,
"c": 0.15736,
"h": 263.6
},
"luminance": 0.09431
}Semantic roles & 50–950 ramp
primary
#2851AF
secondary
#C6AB6D
accent
#B442E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82