#1F148B#1F148B
#1F148B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.180 H 273.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #1F148B |
|---|---|
| RGB | rgb(31, 20, 139) |
| HSL | hsl(246, 75%, 31%) |
| HSV | hsv(246, 86%, 55%) |
| CMYK | cmyk(77.7%, 85.6%, 0%, 45.5%) |
| CIE-LAB | lab(18.61, 43.92, -62.22) |
| CIE-LCH | lch(18.61, 76.16, 305.22°) |
| OKLab | oklab(31.79% 0.0101 -0.1799) |
| OKLCH | oklch(31.79% 0.18 273.2) |
| XYZ | xyz(5.4739, 2.6551, 24.6451) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.67
Darkblue
#00008B
ΔE00 3.23
Cobalt Blue
#030AA7
ΔE00 3.89
Navy
#000080
ΔE00 3.89
Indigo (survey)
#380282
ΔE00 4.16
Royal Blue (survey)
#0504AA
ΔE00 4.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F148B #808B14
analogous
#14448B #1F148B #5A148B
triadic
#1F148B #8B1F14 #148B1F
tetradic
#1F148B #8B1444 #808B14 #148B5A
square
#1F148B #8B1444 #808B14 #148B5A
split-complementary
#1F148B #8B5A14 #448B14
monochromatic
#070520 #130C55 #1F148B #2B1CC1 #4737E2
Accessibility & contrast
On white
13.71
#1F148B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#1F148B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F148B
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F148B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F148B | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f148b; /* rgb */ color: rgb(31, 20, 139); /* oklch */ color: oklch(31.8% 0.180 273.2);
Tailwind
colors: {
custom: {
50: '#7056ae',
500: '#1f148b',
950: '#000000',
},
}SCSS
$custom: #1f148b; $custom-light: #7056ae; $custom-dark: #000000;
JSON
{
"hex": "#1f148b",
"rgb": {
"r": 31,
"g": 20,
"b": 139
},
"hsl": {
"h": 245.546,
"s": 74.843,
"l": 31.176
},
"oklch": {
"l": 0.3179,
"c": 0.18023,
"h": 273.2
},
"luminance": 0.02656
}Semantic roles & 50–950 ramp
primary
#1F148B
secondary
#B3BF3C
accent
#F136E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F