#1F147C#1F147C
#1F147C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.162 H 275.1°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).
Color values
| HEX | #1F147C |
|---|---|
| RGB | rgb(31, 20, 124) |
| HSL | hsl(246, 72%, 28%) |
| HSV | hsv(246, 84%, 49%) |
| CMYK | cmyk(75%, 83.9%, 0%, 51.4%) |
| CIE-LAB | lab(16.73, 39.16, -55.84) |
| CIE-LCH | lch(16.73, 68.21, 305.04°) |
| OKLab | oklab(29.95% 0.0144 -0.1615) |
| OKLCH | oklch(29.95% 0.162 275.1) |
| XYZ | xyz(4.4521, 2.2464, 19.2638) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.65
Royal
#0C1793
ΔE00 3.52
Dark Royal Blue
#02066F
ΔE00 3.61
Navy
#000080
ΔE00 3.68
Deep Blue
#040273
ΔE00 3.74
Darkblue
#00008B
ΔE00 3.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F147C #717C14
analogous
#143D7C #1F147C #53147C
triadic
#1F147C #7C1F14 #147C1F
tetradic
#1F147C #7C143D #717C14 #147C53
square
#1F147C #7C143D #717C14 #147C53
split-complementary
#1F147C #7C5314 #3D7C14
monochromatic
#07041A #120B47 #1F147C #2C1DB1 #402DDD
Accessibility & contrast
On white
14.49
#1F147C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#1F147C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F147C
14.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F147C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F147C | 1.00 | 14.49 | 1.45 | 14.49 |
| #FFFFFF | 14.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1f147c; /* rgb */ color: rgb(31, 20, 124); /* oklch */ color: oklch(30.0% 0.162 275.1);
Tailwind
colors: {
custom: {
50: '#6c55a3',
500: '#1f147c',
950: '#000000',
},
}SCSS
$custom: #1f147c; $custom-light: #6c55a3; $custom-dark: #000000;
JSON
{
"hex": "#1f147c",
"rgb": {
"r": 31,
"g": 20,
"b": 124
},
"hsl": {
"h": 246.346,
"s": 72.222,
"l": 28.235
},
"oklch": {
"l": 0.29954,
"c": 0.16211,
"h": 275.1
},
"luminance": 0.02247
}Semantic roles & 50–950 ramp
primary
#1F147C
secondary
#A5B23A
accent
#EF39DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F