#1D127C#1D127C
#1D127C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.164 H 274.3°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).
Color values
| HEX | #1D127C |
|---|---|
| RGB | rgb(29, 18, 124) |
| HSL | hsl(246, 75%, 28%) |
| HSV | hsv(246, 85%, 49%) |
| CMYK | cmyk(76.6%, 85.5%, 0%, 51.4%) |
| CIE-LAB | lab(16.25, 39.98, -56.65) |
| CIE-LCH | lch(16.25, 69.34, 305.21°) |
| OKLab | oklab(29.58% 0.0123 -0.1638) |
| OKLCH | oklch(29.58% 0.164 274.3) |
| XYZ | xyz(4.3599, 2.1486, 19.2498) |
| Luminance | 0.0215 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.87
Navy
#000080
ΔE00 3.26
Dark Royal Blue
#02066F
ΔE00 3.27
Deep Blue
#040273
ΔE00 3.35
Royal
#0C1793
ΔE00 3.54
Darkblue
#00008B
ΔE00 3.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D127C #717C12
analogous
#123C7C #1D127C #52127C
triadic
#1D127C #7C1D12 #127C1D
tetradic
#1D127C #7C123C #717C12 #127C52
square
#1D127C #7C123C #717C12 #127C52
split-complementary
#1D127C #7C5212 #3C7C12
monochromatic
#06041B #110A47 #1D127C #291AB1 #3C29E0
Accessibility & contrast
On white
14.69
#1D127C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#1D127C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D127C
14.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D127C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D127C | 1.00 | 14.69 | 1.43 | 14.69 |
| #FFFFFF | 14.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #1d127c; /* rgb */ color: rgb(29, 18, 124); /* oklch */ color: oklch(29.6% 0.164 274.3);
Tailwind
colors: {
custom: {
50: '#6b54a3',
500: '#1d127c',
950: '#000000',
},
}SCSS
$custom: #1d127c; $custom-light: #6b54a3; $custom-dark: #000000;
JSON
{
"hex": "#1d127c",
"rgb": {
"r": 29,
"g": 18,
"b": 124
},
"hsl": {
"h": 246.226,
"s": 74.648,
"l": 27.843
},
"oklch": {
"l": 0.29582,
"c": 0.16427,
"h": 274.3
},
"luminance": 0.02149
}Semantic roles & 50–950 ramp
primary
#1D127C
secondary
#A5B238
accent
#F137DE
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F