#2857AF#2857AF
#2857AF is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.5% C 0.150 H 261.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2857AF |
|---|---|
| RGB | rgb(40, 87, 175) |
| HSL | hsl(219, 63%, 42%) |
| HSV | hsv(219, 77%, 69%) |
| CMYK | cmyk(77.1%, 50.3%, 0%, 31.4%) |
| CIE-LAB | lab(38.48, 16.12, -51.55) |
| CIE-LCH | lch(38.48, 54.02, 287.36°) |
| OKLab | oklab(47.51% -0.0221 -0.1483) |
| OKLCH | oklch(47.51% 0.15 261.5) |
| XYZ | xyz(12.0183, 10.3613, 41.9156) |
| Luminance | 0.1036 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire
#0F52BA
ΔE00 2.19
Denim
#1560BD
ΔE00 3.90
Denim Blue
#3B5B92
ΔE00 4.08
Dusk Blue
#26538D
ΔE00 4.51
Light Navy Blue
#2E5A88
ΔE00 5.07
Cobalt
#0047AB
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2857AF #AF8028
analogous
#289BAF #2857AF #3C28AF
triadic
#2857AF #AF2857 #57AF28
tetradic
#2857AF #AF289B #AF8028 #28AF3C
square
#2857AF #AF289B #AF8028 #28AF3C
split-complementary
#2857AF #AF3C28 #9BAF28
monochromatic
#11254B #1D3E7D #2857AF #4174D4 #7398DF
Accessibility & contrast
On white
6.83
#2857AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.07
#2857AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2857AF
6.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2857AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2857AF | 1.00 | 6.83 | 3.07 | 6.83 |
| #FFFFFF | 6.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.07 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2261B2
Deuteranopia (green-blind)
#0055AD
Tritanopia (blue-blind)
#006C7A
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #2857af; /* rgb */ color: rgb(40, 87, 175); /* oklch */ color: oklch(47.5% 0.150 261.5);
Tailwind
colors: {
custom: {
50: '#7685c7',
500: '#2857af',
950: '#000000',
},
}SCSS
$custom: #2857af; $custom-light: #7685c7; $custom-dark: #000000;
JSON
{
"hex": "#2857af",
"rgb": {
"r": 40,
"g": 87,
"b": 175
},
"hsl": {
"h": 219.111,
"s": 62.791,
"l": 42.157
},
"oklch": {
"l": 0.47507,
"c": 0.1499,
"h": 261.5
},
"luminance": 0.10363
}Semantic roles & 50–950 ramp
primary
#2857AF
secondary
#C6A76D
accent
#AD42E6
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82