#1F137E#1F137E
#1F137E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.165 H 274.9°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).
Color values
| HEX | #1F137E |
|---|---|
| RGB | rgb(31, 19, 126) |
| HSL | hsl(247, 74%, 28%) |
| HSV | hsv(247, 85%, 49%) |
| CMYK | cmyk(75.4%, 84.9%, 0%, 50.6%) |
| CIE-LAB | lab(16.81, 40.29, -56.99) |
| CIE-LCH | lch(16.81, 69.79, 305.26°) |
| OKLab | oklab(30.08% 0.0142 -0.1648) |
| OKLCH | oklch(30.08% 0.165 274.9) |
| XYZ | xyz(4.5626, 2.2630, 19.9310) |
| Luminance | 0.0226 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.03
Royal
#0C1793
ΔE00 3.27
Navy
#000080
ΔE00 3.44
Darkblue
#00008B
ΔE00 3.61
Dark Royal Blue
#02066F
ΔE00 3.65
Deep Blue
#040273
ΔE00 3.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F137E #727E13
analogous
#133C7E #1F137E #54137E
triadic
#1F137E #7E1F13 #137E1F
tetradic
#1F137E #7E133C #727E13 #137E54
square
#1F137E #7E133C #727E13 #137E54
split-complementary
#1F137E #7E5413 #3C7E13
monochromatic
#07041B #120B49 #1F137E #2C1BB3 #402CDF
Accessibility & contrast
On white
14.46
#1F137E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#1F137E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F137E
14.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F137E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F137E | 1.00 | 14.46 | 1.45 | 14.46 |
| #FFFFFF | 14.46 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.46 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1f137e; /* rgb */ color: rgb(31, 19, 126); /* oklch */ color: oklch(30.1% 0.165 274.9);
Tailwind
colors: {
custom: {
50: '#6c55a5',
500: '#1f137e',
950: '#000000',
},
}SCSS
$custom: #1f137e; $custom-light: #6c55a5; $custom-dark: #000000;
JSON
{
"hex": "#1f137e",
"rgb": {
"r": 31,
"g": 19,
"b": 126
},
"hsl": {
"h": 246.729,
"s": 73.793,
"l": 28.431
},
"oklch": {
"l": 0.30081,
"c": 0.16538,
"h": 274.9
},
"luminance": 0.02263
}Semantic roles & 50–950 ramp
primary
#1F137E
secondary
#A6B439
accent
#F037DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F