#2842AB#2842AB
#2842AB is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.171 H 267.7°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2842AB |
|---|---|
| RGB | rgb(40, 66, 171) |
| HSL | hsl(228, 62%, 41%) |
| HSV | hsv(228, 77%, 67%) |
| CMYK | cmyk(76.6%, 61.4%, 0%, 32.9%) |
| CIE-LAB | lab(32.45, 28.54, -58.97) |
| CIE-LCH | lch(32.45, 65.52, 295.83°) |
| OKLab | oklab(42.86% -0.0069 -0.1704) |
| OKLCH | oklch(42.86% 0.171 267.7) |
| XYZ | xyz(10.1714, 7.2867, 39.3906) |
| Luminance | 0.0729 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.01
Cobalt
#0047AB
ΔE00 3.56
Blue Blue
#2242C7
ΔE00 3.77
Blueberry
#464196
ΔE00 5.41
Cobalt (survey)
#1E488F
ΔE00 5.73
Ocean Blue
#4F42B5
ΔE00 5.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2842AB #AB9128
analogous
#2884AB #2842AB #5028AB
triadic
#2842AB #AB2842 #42AB28
tetradic
#2842AB #AB2884 #AB9128 #28AB50
square
#2842AB #AB2884 #AB9128 #28AB50
split-complementary
#2842AB #AB5028 #84AB28
monochromatic
#111C48 #1C2F79 #2842AB #3E5CD2 #7086DE
Accessibility & contrast
On white
8.54
#2842AB on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.46
#2842AB on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2842AB
8.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2842AB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2842AB | 1.00 | 8.54 | 2.46 | 8.54 |
| #FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2842ab; /* rgb */ color: rgb(40, 66, 171); /* oklch */ color: oklch(42.9% 0.171 267.7);
Tailwind
colors: {
custom: {
50: '#7676c5',
500: '#2842ab',
950: '#000000',
},
}SCSS
$custom: #2842ab; $custom-light: #7676c5; $custom-dark: #000000;
JSON
{
"hex": "#2842ab",
"rgb": {
"r": 40,
"g": 66,
"b": 171
},
"hsl": {
"h": 228.092,
"s": 62.085,
"l": 41.373
},
"oklch": {
"l": 0.42862,
"c": 0.17056,
"h": 267.7
},
"luminance": 0.07288
}Semantic roles & 50–950 ramp
primary
#2842AB
secondary
#C4B36A
accent
#C543E5
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82