#2842B6#2842B6
#2842B6 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.185 H 267.8°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2842B6 |
|---|---|
| RGB | rgb(40, 66, 182) |
| HSL | hsl(229, 64%, 44%) |
| HSV | hsv(229, 78%, 71%) |
| CMYK | cmyk(78%, 63.7%, 0%, 28.6%) |
| CIE-LAB | lab(33.40, 32.66, -63.96) |
| CIE-LCH | lch(33.40, 71.82, 297.05°) |
| OKLab | oklab(43.86% -0.007 -0.185) |
| OKLCH | oklch(43.86% 0.185 267.8) |
| XYZ | xyz(11.2639, 7.7237, 45.1441) |
| Luminance | 0.0772 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.21
Sapphire (survey)
#2138AB
ΔE00 3.17
Cobalt
#0047AB
ΔE00 4.29
Blue (survey)
#0343DF
ΔE00 5.03
Ocean Blue
#4F42B5
ΔE00 5.06
Sapphire
#0F52BA
ΔE00 6.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2842B6 #B69C28
analogous
#2889B6 #2842B6 #5528B6
triadic
#2842B6 #B62842 #42B628
tetradic
#2842B6 #B62889 #B69C28 #28B655
square
#2842B6 #B62889 #B69C28 #28B655
split-complementary
#2842B6 #B65528 #89B628
monochromatic
#121E52 #1D3084 #2842B6 #4560D6 #778BE1
Accessibility & contrast
On white
8.25
#2842B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#2842B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2842B6
8.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2842B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2842B6 | 1.00 | 8.25 | 2.55 | 8.25 |
| #FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2842b6; /* rgb */ color: rgb(40, 66, 182); /* oklch */ color: oklch(43.9% 0.185 267.8);
Tailwind
colors: {
custom: {
50: '#7976cd',
500: '#2842b6',
950: '#000000',
},
}SCSS
$custom: #2842b6; $custom-light: #7976cd; $custom-dark: #000000;
JSON
{
"hex": "#2842b6",
"rgb": {
"r": 40,
"g": 66,
"b": 182
},
"hsl": {
"h": 229.014,
"s": 63.964,
"l": 43.529
},
"oklch": {
"l": 0.43858,
"c": 0.18516,
"h": 267.8
},
"luminance": 0.07725
}Semantic roles & 50–950 ramp
primary
#2842B6
secondary
#C9B971
accent
#C941E7
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82