#1F127C#1F127C
#1F127C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.164 H 275.3°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).
Color values
| HEX | #1F127C |
|---|---|
| RGB | rgb(31, 18, 124) |
| HSL | hsl(247, 75%, 28%) |
| HSV | hsv(247, 85%, 49%) |
| CMYK | cmyk(75%, 85.5%, 0%, 51.4%) |
| CIE-LAB | lab(16.40, 40.13, -56.40) |
| CIE-LCH | lch(16.40, 69.22, 305.44°) |
| OKLab | oklab(29.72% 0.0151 -0.163) |
| OKLCH | oklch(29.72% 0.164 275.3) |
| XYZ | xyz(4.4183, 2.1787, 19.2526) |
| Luminance | 0.0218 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.93
Navy
#000080
ΔE00 3.34
Dark Royal Blue
#02066F
ΔE00 3.38
Deep Blue
#040273
ΔE00 3.44
Royal
#0C1793
ΔE00 3.60
Darkblue
#00008B
ΔE00 3.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F127C #6F7C12
analogous
#123A7C #1F127C #54127C
triadic
#1F127C #7C1F12 #127C1F
tetradic
#1F127C #7C123A #6F7C12 #127C54
square
#1F127C #7C123A #6F7C12 #127C54
split-complementary
#1F127C #7C5412 #3A7C12
monochromatic
#07041B #120A47 #1F127C #2C1AB1 #3F29E0
Accessibility & contrast
On white
14.63
#1F127C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#1F127C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F127C
14.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F127C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F127C | 1.00 | 14.63 | 1.44 | 14.63 |
| #FFFFFF | 14.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1f127c; /* rgb */ color: rgb(31, 18, 124); /* oklch */ color: oklch(29.7% 0.164 275.3);
Tailwind
colors: {
custom: {
50: '#6c54a3',
500: '#1f127c',
950: '#000000',
},
}SCSS
$custom: #1f127c; $custom-light: #6c54a3; $custom-dark: #000000;
JSON
{
"hex": "#1f127c",
"rgb": {
"r": 31,
"g": 18,
"b": 124
},
"hsl": {
"h": 247.358,
"s": 74.648,
"l": 27.843
},
"oklch": {
"l": 0.29724,
"c": 0.16373,
"h": 275.3
},
"luminance": 0.02179
}Semantic roles & 50–950 ramp
primary
#1F127C
secondary
#A3B238
accent
#F137DA
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F