#1F197B#1F197B
#1F197B is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.156 H 274.6°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).
Color values
| HEX | #1F197B |
|---|---|
| RGB | rgb(31, 25, 123) |
| HSL | hsl(244, 66%, 29%) |
| HSV | hsv(244, 80%, 48%) |
| CMYK | cmyk(74.8%, 79.7%, 0%, 51.8%) |
| CIE-LAB | lab(17.54, 36.15, -53.87) |
| CIE-LCH | lch(17.54, 64.88, 303.87°) |
| OKLab | oklab(30.48% 0.0125 -0.1558) |
| OKLCH | oklch(30.48% 0.156 274.6) |
| XYZ | xyz(4.4867, 2.4162, 18.9650) |
| Luminance | 0.0242 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.95
Royal
#0C1793
ΔE00 3.68
Dark Royal Blue
#02066F
ΔE00 4.33
Deep Blue
#040273
ΔE00 4.67
Navy
#000080
ΔE00 4.72
Darkblue
#00008B
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F197B #757B19
analogous
#19447B #1F197B #50197B
triadic
#1F197B #7B1F19 #197B1F
tetradic
#1F197B #7B1944 #757B19 #197B50
square
#1F197B #7B1944 #757B19 #197B50
split-complementary
#1F197B #7B5019 #447B19
monochromatic
#060519 #120F48 #1F197B #2C23AE #4238D7
Accessibility & contrast
On white
14.16
#1F197B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#1F197B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F197B
14.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F197B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F197B | 1.00 | 14.16 | 1.48 | 14.16 |
| #FFFFFF | 14.16 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.16 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002679
Tritanopia (blue-blind)
#003649
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #1f197b; /* rgb */ color: rgb(31, 25, 123); /* oklch */ color: oklch(30.5% 0.156 274.6);
Tailwind
colors: {
custom: {
50: '#6b58a2',
500: '#1f197b',
950: '#000000',
},
}SCSS
$custom: #1f197b; $custom-light: #6b58a2; $custom-dark: #000000;
JSON
{
"hex": "#1f197b",
"rgb": {
"r": 31,
"g": 25,
"b": 123
},
"hsl": {
"h": 243.673,
"s": 66.216,
"l": 29.02
},
"oklch": {
"l": 0.3048,
"c": 0.15632,
"h": 274.6
},
"luminance": 0.02417
}Semantic roles & 50–950 ramp
primary
#1F197B
secondary
#A9AF40
accent
#E93FDF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F