#1840A7#1840A7
#1840A7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.172 H 264.0°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).
Color values
| HEX | #1840A7 |
|---|---|
| RGB | rgb(24, 64, 167) |
| HSL | hsl(223, 75%, 37%) |
| HSV | hsv(223, 86%, 65%) |
| CMYK | cmyk(85.6%, 61.7%, 0%, 34.5%) |
| CIE-LAB | lab(31.00, 26.86, -58.98) |
| CIE-LCH | lch(31.00, 64.81, 294.48°) |
| OKLab | oklab(41.51% -0.0178 -0.1707) |
| OKLCH | oklch(41.51% 0.172 264) |
| XYZ | xyz(9.1826, 6.6499, 37.3513) |
| Luminance | 0.0665 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt
#0047AB
ΔE00 2.89
Sapphire (survey)
#2138AB
ΔE00 3.11
Blue Blue
#2242C7
ΔE00 4.72
Cobalt (survey)
#1E488F
ΔE00 4.96
Sapphire
#0F52BA
ΔE00 6.26
Blueberry
#464196
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1840A7 #A77F18
analogous
#1887A7 #1840A7 #3818A7
triadic
#1840A7 #A71840 #40A718
tetradic
#1840A7 #A71887 #A77F18 #18A738
square
#1840A7 #A71887 #A77F18 #18A738
split-complementary
#1840A7 #A73818 #87A718
monochromatic
#09173C #102B71 #1840A7 #2055DD #537CE6
Accessibility & contrast
On white
9.01
#1840A7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#1840A7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1840A7
9.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1840A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1840A7 | 1.00 | 9.01 | 2.33 | 9.01 |
| #FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #1840a7; /* rgb */ color: rgb(24, 64, 167); /* oklch */ color: oklch(41.5% 0.172 264.0);
Tailwind
colors: {
custom: {
50: '#7174c2',
500: '#1840a7',
950: '#000000',
},
}SCSS
$custom: #1840a7; $custom-light: #7174c2; $custom-dark: #000000;
JSON
{
"hex": "#1840a7",
"rgb": {
"r": 24,
"g": 64,
"b": 167
},
"hsl": {
"h": 223.217,
"s": 74.869,
"l": 37.451
},
"oklch": {
"l": 0.4151,
"c": 0.17165,
"h": 264
},
"luminance": 0.06651
}Semantic roles & 50–950 ramp
primary
#1840A7
secondary
#C9A852
accent
#BD36F1
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090812
muted
#7B7B81