#1D127E#1D127E
#1D127E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.167 H 274.0°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).
Color values
| HEX | #1D127E |
|---|---|
| RGB | rgb(29, 18, 126) |
| HSL | hsl(246, 75%, 28%) |
| HSV | hsv(246, 86%, 49%) |
| CMYK | cmyk(77%, 85.7%, 0%, 50.6%) |
| CIE-LAB | lab(16.50, 40.62, -57.50) |
| CIE-LCH | lch(16.50, 70.40, 305.24°) |
| OKLab | oklab(29.83% 0.0117 -0.1663) |
| OKLCH | oklch(29.83% 0.167 274) |
| XYZ | xyz(4.4876, 2.1997, 19.9227) |
| Luminance | 0.0220 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.10
Navy
#000080
ΔE00 3.20
Royal
#0C1793
ΔE00 3.26
Darkblue
#00008B
ΔE00 3.41
Dark Royal Blue
#02066F
ΔE00 3.45
Deep Blue
#040273
ΔE00 3.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D127E #737E12
analogous
#123D7E #1D127E #53127E
triadic
#1D127E #7E1D12 #127E1D
tetradic
#1D127E #7E123D #737E12 #127E53
square
#1D127E #7E123D #737E12 #127E53
split-complementary
#1D127E #7E5312 #3D7E12
monochromatic
#06041B #110A48 #1D127E #291AB4 #3C2AE1
Accessibility & contrast
On white
14.58
#1D127E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#1D127E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D127E
14.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D127E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D127E | 1.00 | 14.58 | 1.44 | 14.58 |
| #FFFFFF | 14.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1d127e; /* rgb */ color: rgb(29, 18, 126); /* oklch */ color: oklch(29.8% 0.167 274.0);
Tailwind
colors: {
custom: {
50: '#6c54a5',
500: '#1d127e',
950: '#000000',
},
}SCSS
$custom: #1d127e; $custom-light: #6c54a5; $custom-dark: #000000;
JSON
{
"hex": "#1d127e",
"rgb": {
"r": 29,
"g": 18,
"b": 126
},
"hsl": {
"h": 246.111,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.2983,
"c": 0.1667,
"h": 274
},
"luminance": 0.022
}Semantic roles & 50–950 ramp
primary
#1D127E
secondary
#A7B438
accent
#F236DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F