#2845AE#2845AE
#2845AE is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.171 H 267.0°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).
Color values
| HEX | #2845AE |
|---|---|
| RGB | rgb(40, 69, 174) |
| HSL | hsl(227, 63%, 42%) |
| HSV | hsv(227, 77%, 68%) |
| CMYK | cmyk(77%, 60.3%, 0%, 31.8%) |
| CIE-LAB | lab(33.48, 27.69, -59.08) |
| CIE-LCH | lch(33.48, 65.25, 295.11°) |
| OKLab | oklab(43.71% -0.0089 -0.1707) |
| OKLCH | oklch(43.71% 0.171 267) |
| XYZ | xyz(10.6405, 7.7622, 40.9737) |
| Luminance | 0.0776 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.04
Blue Blue
#2242C7
ΔE00 3.58
Sapphire (survey)
#2138AB
ΔE00 3.93
Sapphire
#0F52BA
ΔE00 5.16
Cobalt (survey)
#1E488F
ΔE00 5.50
Blueberry
#464196
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2845AE #AE9128
analogous
#2888AE #2845AE #4E28AE
triadic
#2845AE #AE2845 #45AE28
tetradic
#2845AE #AE2888 #AE9128 #28AE4E
square
#2845AE #AE2888 #AE9128 #28AE4E
split-complementary
#2845AE #AE4E28 #88AE28
monochromatic
#111E4A #1D317C #2845AE #4060D3 #7289DF
Accessibility & contrast
On white
8.23
#2845AE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.55
#2845AE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2845AE
8.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2845AE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2845AE | 1.00 | 8.23 | 2.55 | 8.23 |
| #FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B1
Deuteranopia (green-blind)
#0049AC
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2845ae; /* rgb */ color: rgb(40, 69, 174); /* oklch */ color: oklch(43.7% 0.171 267.0);
Tailwind
colors: {
custom: {
50: '#7778c7',
500: '#2845ae',
950: '#000000',
},
}SCSS
$custom: #2845ae; $custom-light: #7778c7; $custom-dark: #000000;
JSON
{
"hex": "#2845ae",
"rgb": {
"r": 40,
"g": 69,
"b": 174
},
"hsl": {
"h": 227.015,
"s": 62.617,
"l": 41.961
},
"oklch": {
"l": 0.43707,
"c": 0.17092,
"h": 267
},
"luminance": 0.07763
}Semantic roles & 50–950 ramp
primary
#2845AE
secondary
#C6B26C
accent
#C242E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82