#2840A2#2840A2
#2840A2 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.161 H 268.0°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2840A2 |
|---|---|
| RGB | rgb(40, 64, 162) |
| HSL | hsl(228, 60%, 40%) |
| HSV | hsv(228, 75%, 64%) |
| CMYK | cmyk(75.3%, 60.5%, 0%, 36.5%) |
| CIE-LAB | lab(31.17, 26.47, -55.65) |
| CIE-LCH | lch(31.17, 61.63, 295.44°) |
| OKLab | oklab(41.68% -0.0055 -0.1607) |
| OKLCH | oklch(41.68% 0.161 268) |
| XYZ | xyz(9.2278, 6.7255, 34.9872) |
| Luminance | 0.0673 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.91
Cobalt
#0047AB
ΔE00 3.89
Blueberry
#464196
ΔE00 4.90
Blue Blue
#2242C7
ΔE00 5.03
Cobalt (survey)
#1E488F
ΔE00 5.23
Ocean Blue
#4F42B5
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2840A2 #A28A28
analogous
#287DA2 #2840A2 #4D28A2
triadic
#2840A2 #A22840 #40A228
tetradic
#2840A2 #A2287D #A28A28 #28A24D
square
#2840A2 #A2287D #A28A28 #28A24D
split-complementary
#2840A2 #A24D28 #7DA228
monochromatic
#101940 #1C2D71 #2840A2 #3956CE #6A80DA
Accessibility & contrast
On white
8.95
#2840A2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#2840A2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2840A2
8.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2840A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2840A2 | 1.00 | 8.95 | 2.35 | 8.95 |
| #FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0044A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #2840a2; /* rgb */ color: rgb(40, 64, 162); /* oklch */ color: oklch(41.7% 0.161 268.0);
Tailwind
colors: {
custom: {
50: '#7474be',
500: '#2840a2',
950: '#000000',
},
}SCSS
$custom: #2840a2; $custom-light: #7474be; $custom-dark: #000000;
JSON
{
"hex": "#2840a2",
"rgb": {
"r": 40,
"g": 64,
"b": 162
},
"hsl": {
"h": 228.197,
"s": 60.396,
"l": 39.608
},
"oklch": {
"l": 0.41678,
"c": 0.1608,
"h": 268
},
"luminance": 0.06727
}Semantic roles & 50–950 ramp
primary
#2840A2
secondary
#C1AF65
accent
#C444E4
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81