#1D127F#1D127F
#1D127F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.168 H 273.9°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).
Color values
| HEX | #1D127F |
|---|---|
| RGB | rgb(29, 18, 127) |
| HSL | hsl(246, 75%, 28%) |
| HSV | hsv(246, 86%, 50%) |
| CMYK | cmyk(77.2%, 85.8%, 0%, 50.2%) |
| CIE-LAB | lab(16.63, 40.94, -57.93) |
| CIE-LCH | lch(16.63, 70.93, 305.25°) |
| OKLab | oklab(29.95% 0.0114 -0.1675) |
| OKLCH | oklch(29.95% 0.168 273.9) |
| XYZ | xyz(4.5525, 2.2257, 20.2642) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.13
Navy
#000080
ΔE00 3.18
Midnight Blue
#191970
ΔE00 3.21
Darkblue
#00008B
ΔE00 3.32
Deep Blue
#040273
ΔE00 3.53
Dark Royal Blue
#02066F
ΔE00 3.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D127F #747F12
analogous
#123D7F #1D127F #53127F
triadic
#1D127F #7F1D12 #127F1D
tetradic
#1D127F #7F123D #747F12 #127F53
square
#1D127F #7F123D #747F12 #127F53
split-complementary
#1D127F #7F5312 #3D7F12
monochromatic
#06041B #110A49 #1D127F #291AB5 #3D2BE1
Accessibility & contrast
On white
14.53
#1D127F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#1D127F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D127F
14.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D127F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D127F | 1.00 | 14.53 | 1.45 | 14.53 |
| #FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1d127f; /* rgb */ color: rgb(29, 18, 127); /* oklch */ color: oklch(30.0% 0.168 273.9);
Tailwind
colors: {
custom: {
50: '#6c54a5',
500: '#1d127f',
950: '#000000',
},
}SCSS
$custom: #1d127f; $custom-light: #6c54a5; $custom-dark: #000000;
JSON
{
"hex": "#1d127f",
"rgb": {
"r": 29,
"g": 18,
"b": 127
},
"hsl": {
"h": 246.055,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.29954,
"c": 0.16791,
"h": 273.9
},
"luminance": 0.02226
}Semantic roles & 50–950 ramp
primary
#1D127F
secondary
#A8B538
accent
#F236DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F