#1C40AF#1C40AF
#1C40AF is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.181 H 265.2°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #1C40AF |
|---|---|
| RGB | rgb(28, 64, 175) |
| HSL | hsl(225, 72%, 40%) |
| HSV | hsv(225, 84%, 69%) |
| CMYK | cmyk(84%, 63.4%, 0%, 31.4%) |
| CIE-LAB | lab(31.82, 30.28, -62.40) |
| CIE-LCH | lch(31.82, 69.36, 295.88°) |
| OKLab | oklab(42.38% -0.0152 -0.1807) |
| OKLCH | oklch(42.38% 0.181 265.2) |
| XYZ | xyz(10.0474, 7.0076, 41.3722) |
| Luminance | 0.0701 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.60
Blue Blue
#2242C7
ΔE00 3.46
Cobalt
#0047AB
ΔE00 3.47
Cobalt (survey)
#1E488F
ΔE00 6.05
Blue (survey)
#0343DF
ΔE00 6.16
Sapphire
#0F52BA
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1C40AF #AF8B1C
analogous
#1C8AAF #1C40AF #411CAF
triadic
#1C40AF #AF1C40 #40AF1C
tetradic
#1C40AF #AF1C8A #AF8B1C #1CAF41
square
#1C40AF #AF1C8A #AF8B1C #1CAF41
split-complementary
#1C40AF #AF411C #8AAF1C
monochromatic
#0B1945 #142D7A #1C40AF #2B57DD #6081E6
Accessibility & contrast
On white
8.74
#1C40AF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#1C40AF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1C40AF
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1C40AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1C40AF | 1.00 | 8.74 | 2.40 | 8.74 |
| #FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #1c40af; /* rgb */ color: rgb(28, 64, 175); /* oklch */ color: oklch(42.4% 0.181 265.2);
Tailwind
colors: {
custom: {
50: '#7474c8',
500: '#1c40af',
950: '#000000',
},
}SCSS
$custom: #1c40af; $custom-light: #7474c8; $custom-dark: #000000;
JSON
{
"hex": "#1c40af",
"rgb": {
"r": 28,
"g": 64,
"b": 175
},
"hsl": {
"h": 225.306,
"s": 72.414,
"l": 39.804
},
"oklch": {
"l": 0.42377,
"c": 0.18133,
"h": 265.2
},
"luminance": 0.07009
}Semantic roles & 50–950 ramp
primary
#1C40AF
secondary
#CAAF5D
accent
#C239EF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82