#2857B2#2857B2
#2857B2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.7% C 0.154 H 261.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).
Color values
| HEX | #2857B2 |
|---|---|
| RGB | rgb(40, 87, 178) |
| HSL | hsl(220, 63%, 43%) |
| HSV | hsv(220, 78%, 70%) |
| CMYK | cmyk(77.5%, 51.1%, 0%, 30.2%) |
| CIE-LAB | lab(38.69, 17.28, -52.99) |
| CIE-LCH | lch(38.69, 55.74, 288.06°) |
| OKLab | oklab(47.73% -0.0217 -0.1525) |
| OKLCH | oklch(47.73% 0.154 261.9) |
| XYZ | xyz(12.3163, 10.4804, 43.4847) |
| Luminance | 0.1048 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.01
Denim
#1560BD
ΔE00 3.88
Denim Blue
#3B5B92
ΔE00 4.39
Dusk Blue
#26538D
ΔE00 4.90
Cobalt
#0047AB
ΔE00 5.20
Light Navy Blue
#2E5A88
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2857B2 #B28328
analogous
#289CB2 #2857B2 #3E28B2
triadic
#2857B2 #B22857 #57B228
tetradic
#2857B2 #B2289C #B28328 #28B23E
square
#2857B2 #B2289C #B28328 #28B23E
split-complementary
#2857B2 #B23E28 #9CB228
monochromatic
#12264E #1D3F80 #2857B2 #4374D5 #7599E0
Accessibility & contrast
On white
6.78
#2857B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#2857B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2857B2
6.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2857B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2857B2 | 1.00 | 6.78 | 3.10 | 6.78 |
| #FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D62B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2857b2; /* rgb */ color: rgb(40, 87, 178); /* oklch */ color: oklch(47.7% 0.154 261.9);
Tailwind
colors: {
custom: {
50: '#7785ca',
500: '#2857b2',
950: '#000000',
},
}SCSS
$custom: #2857b2; $custom-light: #7785ca; $custom-dark: #000000;
JSON
{
"hex": "#2857b2",
"rgb": {
"r": 40,
"g": 87,
"b": 178
},
"hsl": {
"h": 219.565,
"s": 63.303,
"l": 42.745
},
"oklch": {
"l": 0.47732,
"c": 0.15402,
"h": 261.9
},
"luminance": 0.10482
}Semantic roles & 50–950 ramp
primary
#2857B2
secondary
#C7A96F
accent
#AE41E6
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82