#2845AF#2845AF
#2845AF is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.8% C 0.172 H 267.1°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).
Color values
| HEX | #2845AF |
|---|---|
| RGB | rgb(40, 69, 175) |
| HSL | hsl(227, 63%, 42%) |
| HSV | hsv(227, 77%, 69%) |
| CMYK | cmyk(77.1%, 60.6%, 0%, 31.4%) |
| CIE-LAB | lab(33.57, 28.07, -59.54) |
| CIE-LCH | lch(33.57, 65.82, 295.24°) |
| OKLab | oklab(43.8% -0.0089 -0.172) |
| OKLCH | oklch(43.8% 0.172 267.1) |
| XYZ | xyz(10.7384, 7.8013, 41.4890) |
| Luminance | 0.0780 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 3.11
Blue Blue
#2242C7
ΔE00 3.43
Sapphire (survey)
#2138AB
ΔE00 3.92
Sapphire
#0F52BA
ΔE00 5.15
Cobalt (survey)
#1E488F
ΔE00 5.63
Ocean Blue
#4F42B5
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2845AF #AF9228
analogous
#2889AF #2845AF #4E28AF
triadic
#2845AF #AF2845 #45AF28
tetradic
#2845AF #AF2889 #AF9228 #28AF4E
square
#2845AF #AF2889 #AF9228 #28AF4E
split-complementary
#2845AF #AF4E28 #89AF28
monochromatic
#111E4B #1D317D #2845AF #4160D4 #738ADF
Accessibility & contrast
On white
8.20
#2845AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.56
#2845AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2845AF
8.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2845AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2845AF | 1.00 | 8.20 | 2.56 | 8.20 |
| #FFFFFF | 8.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#006073
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #2845af; /* rgb */ color: rgb(40, 69, 175); /* oklch */ color: oklch(43.8% 0.172 267.1);
Tailwind
colors: {
custom: {
50: '#7778c8',
500: '#2845af',
950: '#000000',
},
}SCSS
$custom: #2845af; $custom-light: #7778c8; $custom-dark: #000000;
JSON
{
"hex": "#2845af",
"rgb": {
"r": 40,
"g": 69,
"b": 175
},
"hsl": {
"h": 227.111,
"s": 62.791,
"l": 42.157
},
"oklch": {
"l": 0.43795,
"c": 0.17227,
"h": 267.1
},
"luminance": 0.07803
}Semantic roles & 50–950 ramp
primary
#2845AF
secondary
#C6B36D
accent
#C342E6
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82