#2845B6#2845B6
#2845B6 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.4% C 0.182 H 267.2°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2845B6 |
|---|---|
| RGB | rgb(40, 69, 182) |
| HSL | hsl(228, 64%, 44%) |
| HSV | hsv(228, 78%, 71%) |
| CMYK | cmyk(78%, 62.1%, 0%, 28.6%) |
| CIE-LAB | lab(34.16, 30.70, -62.72) |
| CIE-LCH | lch(34.16, 69.84, 296.08°) |
| OKLab | oklab(44.42% -0.0088 -0.1814) |
| OKLCH | oklch(44.42% 0.182 267.2) |
| XYZ | xyz(11.4437, 8.0835, 45.2040) |
| Luminance | 0.0809 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blue Blue
#2242C7
ΔE00 2.47
Cobalt
#0047AB
ΔE00 3.69
Sapphire (survey)
#2138AB
ΔE00 4.01
Blue (survey)
#0343DF
ΔE00 5.07
Sapphire
#0F52BA
ΔE00 5.21
Ocean Blue
#4F42B5
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2845B6 #B69928
analogous
#288CB6 #2845B6 #5228B6
triadic
#2845B6 #B62845 #45B628
tetradic
#2845B6 #B6288C #B69928 #28B652
square
#2845B6 #B6288C #B69928 #28B652
split-complementary
#2845B6 #B65228 #8CB628
monochromatic
#121F52 #1D3284 #2845B6 #4563D6 #778DE1
Accessibility & contrast
On white
8.02
#2845B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.62
#2845B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2845B6
8.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2845B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2845B6 | 1.00 | 8.02 | 2.62 | 8.02 |
| #FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#006277
Achromatopsia (no color)
#505050
Design tokens & code
CSS
--color: #2845b6; /* rgb */ color: rgb(40, 69, 182); /* oklch */ color: oklch(44.4% 0.182 267.2);
Tailwind
colors: {
custom: {
50: '#7978cd',
500: '#2845b6',
950: '#000000',
},
}SCSS
$custom: #2845b6; $custom-light: #7978cd; $custom-dark: #000000;
JSON
{
"hex": "#2845b6",
"rgb": {
"r": 40,
"g": 69,
"b": 182
},
"hsl": {
"h": 227.746,
"s": 63.964,
"l": 43.529
},
"oklch": {
"l": 0.44417,
"c": 0.1816,
"h": 267.2
},
"luminance": 0.08085
}Semantic roles & 50–950 ramp
primary
#2845B6
secondary
#C9B771
accent
#C541E7
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82