#1C40B4#1C40B4
#1C40B4 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.8% C 0.188 H 265.4°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).
Color values
| HEX | #1C40B4 |
|---|---|
| RGB | rgb(28, 64, 180) |
| HSL | hsl(226, 73%, 41%) |
| HSV | hsv(226, 84%, 71%) |
| CMYK | cmyk(84.4%, 64.4%, 0%, 29.4%) |
| CIE-LAB | lab(32.28, 32.19, -64.64) |
| CIE-LCH | lch(32.28, 72.21, 296.48°) |
| OKLab | oklab(42.85% -0.0152 -0.1872) |
| OKLCH | oklch(42.85% 0.188 265.4) |
| XYZ | xyz(10.5476, 7.2077, 44.0065) |
| Luminance | 0.0721 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.66
Blue Blue
#2242C7
ΔE00 2.76
Cobalt
#0047AB
ΔE00 3.84
Blue (survey)
#0343DF
ΔE00 5.48
Ocean Blue
#4F42B5
ΔE00 5.95
Sapphire
#0F52BA
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1C40B4 #B4901C
analogous
#1C8CB4 #1C40B4 #441CB4
triadic
#1C40B4 #B41C40 #40B41C
tetradic
#1C40B4 #B41C8C #B4901C #1CB444
square
#1C40B4 #B41C8C #B4901C #1CB444
split-complementary
#1C40B4 #B4441C #8CB41C
monochromatic
#0C1A4A #142D7F #1C40B4 #2F58DF #6483E7
Accessibility & contrast
On white
8.60
#1C40B4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#1C40B4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1C40B4
8.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1C40B4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1C40B4 | 1.00 | 8.60 | 2.44 | 8.60 |
| #FFFFFF | 8.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.60 | 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: #1c40b4; /* rgb */ color: rgb(28, 64, 180); /* oklch */ color: oklch(42.8% 0.188 265.4);
Tailwind
colors: {
custom: {
50: '#7574cb',
500: '#1c40b4',
950: '#000000',
},
}SCSS
$custom: #1c40b4; $custom-light: #7574cb; $custom-dark: #000000;
JSON
{
"hex": "#1c40b4",
"rgb": {
"r": 28,
"g": 64,
"b": 180
},
"hsl": {
"h": 225.789,
"s": 73.077,
"l": 40.784
},
"oklch": {
"l": 0.42848,
"c": 0.18786,
"h": 265.4
},
"luminance": 0.07209
}Semantic roles & 50–950 ramp
primary
#1C40B4
secondary
#CCB260
accent
#C438F0
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82