#1840B4#1840B4
#1840B4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.189 H 264.6°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1840B4 |
|---|---|
| RGB | rgb(24, 64, 180) |
| HSL | hsl(225, 76%, 40%) |
| HSV | hsv(225, 87%, 71%) |
| CMYK | cmyk(86.7%, 64.4%, 0%, 29.4%) |
| CIE-LAB | lab(32.16, 31.92, -64.84) |
| CIE-LCH | lch(32.16, 72.27, 296.21°) |
| OKLab | oklab(42.73% -0.0177 -0.1879) |
| OKLCH | oklch(42.73% 0.189 264.6) |
| XYZ | xyz(10.4454, 7.1549, 44.0017) |
| Luminance | 0.0716 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.75
Blue Blue
#2242C7
ΔE00 2.88
Cobalt
#0047AB
ΔE00 3.65
Blue (survey)
#0343DF
ΔE00 5.53
Sapphire
#0F52BA
ΔE00 6.16
Ocean Blue
#4F42B5
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1840B4 #B48C18
analogous
#188EB4 #1840B4 #3E18B4
triadic
#1840B4 #B41840 #40B418
tetradic
#1840B4 #B4188E #B48C18 #18B43E
square
#1840B4 #B4188E #B48C18 #18B43E
split-complementary
#1840B4 #B43E18 #8EB418
monochromatic
#0A1A48 #112D7E #1840B4 #2757E2 #5D81E9
Accessibility & contrast
On white
8.64
#1840B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.43
#1840B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1840B4
8.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1840B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1840B4 | 1.00 | 8.64 | 2.43 | 8.64 |
| #FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #1840b4; /* rgb */ color: rgb(24, 64, 180); /* oklch */ color: oklch(42.7% 0.189 264.6);
Tailwind
colors: {
custom: {
50: '#7574cc',
500: '#1840b4',
950: '#000000',
},
}SCSS
$custom: #1840b4; $custom-light: #7574cc; $custom-dark: #000000;
JSON
{
"hex": "#1840b4",
"rgb": {
"r": 24,
"g": 64,
"b": 180
},
"hsl": {
"h": 224.615,
"s": 76.471,
"l": 40
},
"oklch": {
"l": 0.42728,
"c": 0.18871,
"h": 264.6
},
"luminance": 0.07156
}Semantic roles & 50–950 ramp
primary
#1840B4
secondary
#CDB05B
accent
#C235F3
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82