#1D277E#1D277E
#1D277E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.145 H 270.7°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #1D277E |
|---|---|
| RGB | rgb(29, 39, 126) |
| HSL | hsl(234, 63%, 30%) |
| HSV | hsv(234, 77%, 49%) |
| CMYK | cmyk(77%, 69%, 0%, 50.6%) |
| CIE-LAB | lab(20.90, 28.27, -50.25) |
| CIE-LCH | lch(20.90, 57.65, 299.36°) |
| OKLab | oklab(32.95% 0.0017 -0.1453) |
| OKLCH | oklch(32.95% 0.145 270.7) |
| XYZ | xyz(4.9968, 3.2181, 20.0924) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.10
Royal
#0C1793
ΔE00 5.46
Sapphire (survey)
#2138AB
ΔE00 7.60
Dark Royal Blue
#02066F
ΔE00 7.85
Marine
#042E60
ΔE00 7.88
Darkslateblue
#483D8B
ΔE00 8.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D277E #7E741D
analogous
#1D587E #1D277E #431D7E
triadic
#1D277E #7E1D27 #277E1D
tetradic
#1D277E #7E1D58 #7E741D #1D7E43
square
#1D277E #7E1D58 #7E741D #1D7E43
split-complementary
#1D277E #7E431D #587E1D
monochromatic
#06081B #12184C #1D277E #2836B0 #4251D3
Accessibility & contrast
On white
12.78
#1D277E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#1D277E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D277E
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D277E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D277E | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003E4F
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1d277e; /* rgb */ color: rgb(29, 39, 126); /* oklch */ color: oklch(33.0% 0.145 270.7);
Tailwind
colors: {
custom: {
50: '#6a61a4',
500: '#1d277e',
950: '#000000',
},
}SCSS
$custom: #1d277e; $custom-light: #6a61a4; $custom-dark: #000000;
JSON
{
"hex": "#1d277e",
"rgb": {
"r": 29,
"g": 39,
"b": 126
},
"hsl": {
"h": 233.814,
"s": 62.581,
"l": 30.392
},
"oklch": {
"l": 0.3295,
"c": 0.14536,
"h": 270.7
},
"luminance": 0.03219
}Semantic roles & 50–950 ramp
primary
#1D277E
secondary
#B1A645
accent
#D542E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F