#1F138A#1F138A
#1F138A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.180 H 273.4°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).
Color values
| HEX | #1F138A |
|---|---|
| RGB | rgb(31, 19, 138) |
| HSL | hsl(246, 76%, 31%) |
| HSV | hsv(246, 86%, 54%) |
| CMYK | cmyk(77.5%, 86.2%, 0%, 45.9%) |
| CIE-LAB | lab(18.33, 44.06, -62.06) |
| CIE-LCH | lch(18.33, 76.11, 305.38°) |
| OKLab | oklab(31.56% 0.0107 -0.1794) |
| OKLCH | oklch(31.56% 0.18 273.4) |
| XYZ | xyz(5.3839, 2.5915, 24.2563) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.84
Darkblue
#00008B
ΔE00 3.07
Navy
#000080
ΔE00 3.69
Cobalt Blue
#030AA7
ΔE00 3.98
Indigo (survey)
#380282
ΔE00 4.02
Royal Blue (survey)
#0504AA
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F138A #7E8A13
analogous
#13438A #1F138A #5A138A
triadic
#1F138A #8A1F13 #138A1F
tetradic
#1F138A #8A1343 #7E8A13 #138A5A
square
#1F138A #8A1343 #7E8A13 #138A5A
split-complementary
#1F138A #8A5A13 #438A13
monochromatic
#07041E #130C54 #1F138A #2B1AC0 #4634E3
Accessibility & contrast
On white
13.83
#1F138A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#1F138A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F138A
13.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F138A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F138A | 1.00 | 13.83 | 1.52 | 13.83 |
| #FFFFFF | 13.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f138a; /* rgb */ color: rgb(31, 19, 138); /* oklch */ color: oklch(31.6% 0.180 273.4);
Tailwind
colors: {
custom: {
50: '#6f56ae',
500: '#1f138a',
950: '#000000',
},
}SCSS
$custom: #1f138a; $custom-light: #6f56ae; $custom-dark: #000000;
JSON
{
"hex": "#1f138a",
"rgb": {
"r": 31,
"g": 19,
"b": 138
},
"hsl": {
"h": 246.05,
"s": 75.796,
"l": 30.784
},
"oklch": {
"l": 0.31562,
"c": 0.17977,
"h": 273.4
},
"luminance": 0.02592
}Semantic roles & 50–950 ramp
primary
#1F138A
secondary
#B1BE3A
accent
#F235DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F