#1D127D#1D127D
#1D127D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.165 H 274.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).
Color values
| HEX | #1D127D |
|---|---|
| RGB | rgb(29, 18, 125) |
| HSL | hsl(246, 75%, 28%) |
| HSV | hsv(246, 86%, 49%) |
| CMYK | cmyk(76.8%, 85.6%, 0%, 51%) |
| CIE-LAB | lab(16.38, 40.30, -57.08) |
| CIE-LCH | lch(16.38, 69.87, 305.23°) |
| OKLab | oklab(29.71% 0.012 -0.165) |
| OKLCH | oklch(29.71% 0.165 274.1) |
| XYZ | xyz(4.4234, 2.1740, 19.5846) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.98
Navy
#000080
ΔE00 3.23
Dark Royal Blue
#02066F
ΔE00 3.36
Royal
#0C1793
ΔE00 3.40
Deep Blue
#040273
ΔE00 3.41
Darkblue
#00008B
ΔE00 3.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D127D #727D12
analogous
#123C7D #1D127D #52127D
triadic
#1D127D #7D1D12 #127D1D
tetradic
#1D127D #7D123C #727D12 #127D52
square
#1D127D #7D123C #727D12 #127D52
split-complementary
#1D127D #7D5212 #3C7D12
monochromatic
#06041B #110A48 #1D127D #291AB2 #3C29E0
Accessibility & contrast
On white
14.64
#1D127D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#1D127D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D127D
14.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D127D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D127D | 1.00 | 14.64 | 1.43 | 14.64 |
| #FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00247B
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1d127d; /* rgb */ color: rgb(29, 18, 125); /* oklch */ color: oklch(29.7% 0.165 274.1);
Tailwind
colors: {
custom: {
50: '#6b54a4',
500: '#1d127d',
950: '#000000',
},
}SCSS
$custom: #1d127d; $custom-light: #6b54a4; $custom-dark: #000000;
JSON
{
"hex": "#1d127d",
"rgb": {
"r": 29,
"g": 18,
"b": 125
},
"hsl": {
"h": 246.168,
"s": 74.825,
"l": 28.039
},
"oklch": {
"l": 0.29706,
"c": 0.16548,
"h": 274.1
},
"luminance": 0.02174
}Semantic roles & 50–950 ramp
primary
#1D127D
secondary
#A6B338
accent
#F136DE
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F