#2842B2#2842B2
#2842B2 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.5% C 0.180 H 267.8°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).
Color values
| HEX | #2842B2 |
|---|---|
| RGB | rgb(40, 66, 178) |
| HSL | hsl(229, 63%, 43%) |
| HSV | hsv(229, 78%, 70%) |
| CMYK | cmyk(77.5%, 62.9%, 0%, 30.2%) |
| CIE-LAB | lab(33.05, 31.17, -62.16) |
| CIE-LCH | lch(33.05, 69.54, 296.63°) |
| OKLab | oklab(43.49% -0.0069 -0.1798) |
| OKLCH | oklch(43.49% 0.18 267.8) |
| XYZ | xyz(10.8564, 7.5607, 42.9980) |
| Luminance | 0.0756 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.77
Sapphire (survey)
#2138AB
ΔE00 3.01
Cobalt
#0047AB
ΔE00 3.97
Ocean Blue
#4F42B5
ΔE00 5.26
Blue (survey)
#0343DF
ΔE00 5.57
Blueberry
#464196
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2842B2 #B29828
analogous
#2887B2 #2842B2 #5328B2
triadic
#2842B2 #B22842 #42B228
tetradic
#2842B2 #B22887 #B29828 #28B253
square
#2842B2 #B22887 #B29828 #28B253
split-complementary
#2842B2 #B25328 #87B228
monochromatic
#121D4E #1D2F80 #2842B2 #435ED5 #7589E0
Accessibility & contrast
On white
8.36
#2842B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.51
#2842B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2842B2
8.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2842B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2842B2 | 1.00 | 8.36 | 2.51 | 8.36 |
| #FFFFFF | 8.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #2842b2; /* rgb */ color: rgb(40, 66, 178); /* oklch */ color: oklch(43.5% 0.180 267.8);
Tailwind
colors: {
custom: {
50: '#7876ca',
500: '#2842b2',
950: '#000000',
},
}SCSS
$custom: #2842b2; $custom-light: #7876ca; $custom-dark: #000000;
JSON
{
"hex": "#2842b2",
"rgb": {
"r": 40,
"g": 66,
"b": 178
},
"hsl": {
"h": 228.696,
"s": 63.303,
"l": 42.745
},
"oklch": {
"l": 0.43492,
"c": 0.1799,
"h": 267.8
},
"luminance": 0.07562
}Semantic roles & 50–950 ramp
primary
#2842B2
secondary
#C7B76F
accent
#C741E6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82