#2845A0#2845A0
#2845A0 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.5% C 0.152 H 266.5°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2845A0 |
|---|---|
| RGB | rgb(40, 69, 160) |
| HSL | hsl(226, 60%, 39%) |
| HSV | hsv(226, 75%, 63%) |
| CMYK | cmyk(75%, 56.9%, 0%, 37.3%) |
| CIE-LAB | lab(32.36, 22.35, -52.52) |
| CIE-LCH | lch(32.36, 57.08, 293.05°) |
| OKLab | oklab(42.51% -0.0093 -0.1514) |
| OKLCH | oklch(42.51% 0.152 266.5) |
| XYZ | xyz(9.3461, 7.2444, 34.1566) |
| Luminance | 0.0725 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.77
Cobalt (survey)
#1E488F
ΔE00 3.73
Sapphire (survey)
#2138AB
ΔE00 4.65
Blueberry
#464196
ΔE00 5.56
Sapphire
#0F52BA
ΔE00 5.59
Blue Blue
#2242C7
ΔE00 5.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2845A0 #A08328
analogous
#2881A0 #2845A0 #4728A0
triadic
#2845A0 #A02845 #45A028
tetradic
#2845A0 #A02881 #A08328 #28A047
square
#2845A0 #A02881 #A08328 #28A047
split-complementary
#2845A0 #A04728 #81A028
monochromatic
#101B3E #1C306F #2845A0 #385CCD #6984D9
Accessibility & contrast
On white
8.57
#2845A0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.45
#2845A0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2845A0
8.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2845A0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2845A0 | 1.00 | 8.57 | 2.45 | 8.57 |
| #FFFFFF | 8.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052A3
Deuteranopia (green-blind)
#00479E
Tritanopia (blue-blind)
#005B6B
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #2845a0; /* rgb */ color: rgb(40, 69, 160); /* oklch */ color: oklch(42.5% 0.152 266.5);
Tailwind
colors: {
custom: {
50: '#7478bd',
500: '#2845a0',
950: '#000000',
},
}SCSS
$custom: #2845a0; $custom-light: #7478bd; $custom-dark: #000000;
JSON
{
"hex": "#2845a0",
"rgb": {
"r": 40,
"g": 69,
"b": 160
},
"hsl": {
"h": 225.5,
"s": 60,
"l": 39.216
},
"oklch": {
"l": 0.42513,
"c": 0.15172,
"h": 266.5
},
"luminance": 0.07245
}Semantic roles & 50–950 ramp
primary
#2845A0
secondary
#C0AA64
accent
#BD45E3
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81