#1D227F#1D227F
#1D227F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.153 H 271.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).
Color values
| HEX | #1D227F |
|---|---|
| RGB | rgb(29, 34, 127) |
| HSL | hsl(237, 63%, 31%) |
| HSV | hsv(237, 77%, 50%) |
| CMYK | cmyk(77.2%, 73.2%, 0%, 50.2%) |
| CIE-LAB | lab(19.79, 31.93, -52.70) |
| CIE-LCH | lch(19.79, 61.62, 301.21°) |
| OKLab | oklab(32.18% 0.0045 -0.1525) |
| OKLCH | oklch(32.18% 0.153 271.7) |
| XYZ | xyz(4.9082, 2.9371, 20.3828) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.03
Royal
#0C1793
ΔE00 4.17
Dark Royal Blue
#02066F
ΔE00 6.46
Darkblue
#00008B
ΔE00 6.76
Navy
#000080
ΔE00 6.82
Deep Blue
#040273
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1D227F #7F7A1D
analogous
#1D537F #1D227F #491D7F
triadic
#1D227F #7F1D22 #227F1D
tetradic
#1D227F #7F1D53 #7F7A1D #1D7F49
square
#1D227F #7F1D53 #7F7A1D #1D7F49
split-complementary
#1D227F #7F491D #537F1D
monochromatic
#06071B #12154D #1D227F #282FB1 #424AD4
Accessibility & contrast
On white
13.23
#1D227F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#1D227F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1D227F
13.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1D227F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1D227F | 1.00 | 13.23 | 1.59 | 13.23 |
| #FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.23 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002B7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #1d227f; /* rgb */ color: rgb(29, 34, 127); /* oklch */ color: oklch(32.2% 0.153 271.7);
Tailwind
colors: {
custom: {
50: '#6a5ea5',
500: '#1d227f',
950: '#000000',
},
}SCSS
$custom: #1d227f; $custom-light: #6a5ea5; $custom-dark: #000000;
JSON
{
"hex": "#1d227f",
"rgb": {
"r": 29,
"g": 34,
"b": 127
},
"hsl": {
"h": 236.939,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.3218,
"c": 0.15259,
"h": 271.7
},
"luminance": 0.02938
}Semantic roles & 50–950 ramp
primary
#1D227F
secondary
#B2AD45
accent
#DE42E6
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F