#2842AD#2842AD
#2842AD is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.0% C 0.173 H 267.7°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2842AD |
|---|---|
| RGB | rgb(40, 66, 173) |
| HSL | hsl(228, 62%, 42%) |
| HSV | hsv(228, 77%, 68%) |
| CMYK | cmyk(76.9%, 61.8%, 0%, 32.2%) |
| CIE-LAB | lab(32.62, 29.30, -59.89) |
| CIE-LCH | lch(32.62, 66.67, 296.07°) |
| OKLab | oklab(43.04% -0.0069 -0.1731) |
| OKLCH | oklch(43.04% 0.173 267.7) |
| XYZ | xyz(10.3635, 7.3635, 40.4022) |
| Luminance | 0.0736 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.97
Blue Blue
#2242C7
ΔE00 3.48
Cobalt
#0047AB
ΔE00 3.65
Blueberry
#464196
ΔE00 5.52
Ocean Blue
#4F42B5
ΔE00 5.59
Cobalt (survey)
#1E488F
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2842AD #AD9328
analogous
#2885AD #2842AD #5128AD
triadic
#2842AD #AD2842 #42AD28
tetradic
#2842AD #AD2885 #AD9328 #28AD51
square
#2842AD #AD2885 #AD9328 #28AD51
split-complementary
#2842AD #AD5128 #85AD28
monochromatic
#111C4A #1D2F7B #2842AD #3F5CD3 #7187DE
Accessibility & contrast
On white
8.49
#2842AD on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#2842AD on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2842AD
8.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2842AD | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2842AD | 1.00 | 8.49 | 2.47 | 8.49 |
| #FFFFFF | 8.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B1
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #2842ad; /* rgb */ color: rgb(40, 66, 173); /* oklch */ color: oklch(43.0% 0.173 267.7);
Tailwind
colors: {
custom: {
50: '#7776c6',
500: '#2842ad',
950: '#000000',
},
}SCSS
$custom: #2842ad; $custom-light: #7776c6; $custom-dark: #000000;
JSON
{
"hex": "#2842ad",
"rgb": {
"r": 40,
"g": 66,
"b": 173
},
"hsl": {
"h": 228.271,
"s": 62.441,
"l": 41.765
},
"oklch": {
"l": 0.43041,
"c": 0.17325,
"h": 267.7
},
"luminance": 0.07365
}Semantic roles & 50–950 ramp
primary
#2842AD
secondary
#C5B46C
accent
#C642E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82