#2862C7#2862C7
#2862C7 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 51.7% C 0.169 H 260.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2862C7 |
|---|---|
| RGB | rgb(40, 98, 199) |
| HSL | hsl(218, 67%, 47%) |
| HSV | hsv(218, 80%, 78%) |
| CMYK | cmyk(79.9%, 50.8%, 0%, 22%) |
| CIE-LAB | lab(43.22, 18.18, -57.91) |
| CIE-LCH | lch(43.22, 60.70, 287.43°) |
| OKLab | oklab(51.66% -0.0274 -0.1668) |
| OKLCH | oklch(51.66% 0.169 260.7) |
| XYZ | xyz(15.5478, 13.3081, 55.7710) |
| Luminance | 0.1331 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Denim
#1560BD
ΔE00 2.28
French Blue
#436BAD
ΔE00 4.25
Mid Blue
#276AB3
ΔE00 4.49
Azul
#1D5DEC
ΔE00 5.07
Royal Blue
#4169E1
ΔE00 5.21
Medium Blue
#2C6FBB
ΔE00 5.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2862C7 #C78D28
analogous
#28B2C7 #2862C7 #3D28C7
triadic
#2862C7 #C72862 #62C728
tetradic
#2862C7 #C728B2 #C78D28 #28C73D
square
#2862C7 #C728B2 #C78D28 #28C73D
split-complementary
#2862C7 #C73D28 #B2C728
monochromatic
#143061 #1E4994 #2862C7 #5083DC #83A7E6
Accessibility & contrast
On white
5.73
#2862C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.66
#2862C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #2862C7
5.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2862C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2862C7 | 1.00 | 5.73 | 3.66 | 5.73 |
| #FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#206ECB
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#007A8B
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #2862c7; /* rgb */ color: rgb(40, 98, 199); /* oklch */ color: oklch(51.7% 0.169 260.7);
Tailwind
colors: {
custom: {
50: '#7b8ed9',
500: '#2862c7',
950: '#000000',
},
}SCSS
$custom: #2862c7; $custom-light: #7b8ed9; $custom-dark: #000000;
JSON
{
"hex": "#2862c7",
"rgb": {
"r": 40,
"g": 98,
"b": 199
},
"hsl": {
"h": 218.113,
"s": 66.527,
"l": 46.863
},
"oklch": {
"l": 0.51657,
"c": 0.169,
"h": 260.7
},
"luminance": 0.1331
}Semantic roles & 50–950 ramp
primary
#2862C7
secondary
#CFB17C
accent
#AB3EE9
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C15
muted
#7C7D83