#1F137B#1F137B
#1F137B is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.162 H 275.3°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).
Color values
| HEX | #1F137B |
|---|---|
| RGB | rgb(31, 19, 123) |
| HSL | hsl(247, 73%, 28%) |
| HSV | hsv(247, 85%, 48%) |
| CMYK | cmyk(74.8%, 84.6%, 0%, 51.8%) |
| CIE-LAB | lab(16.44, 39.33, -55.69) |
| CIE-LCH | lch(16.44, 68.18, 305.23°) |
| OKLab | oklab(29.72% 0.0151 -0.161) |
| OKLCH | oklch(29.72% 0.162 275.3) |
| XYZ | xyz(4.3719, 2.1867, 18.9267) |
| Luminance | 0.0219 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.68
Dark Royal Blue
#02066F
ΔE00 3.41
Navy
#000080
ΔE00 3.54
Deep Blue
#040273
ΔE00 3.54
Royal
#0C1793
ΔE00 3.69
Darkblue
#00008B
ΔE00 3.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F137B #6F7B13
analogous
#133B7B #1F137B #53137B
triadic
#1F137B #7B1F13 #137B1F
tetradic
#1F137B #7B133B #6F7B13 #137B53
square
#1F137B #7B133B #6F7B13 #137B53
split-complementary
#1F137B #7B5313 #3B7B13
monochromatic
#07041B #120B46 #1F137B #2C1BB0 #3F2ADE
Accessibility & contrast
On white
14.61
#1F137B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#1F137B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F137B
14.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F137B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F137B | 1.00 | 14.61 | 1.44 | 14.61 |
| #FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7E
Deuteranopia (green-blind)
#002479
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #1f137b; /* rgb */ color: rgb(31, 19, 123); /* oklch */ color: oklch(29.7% 0.162 275.3);
Tailwind
colors: {
custom: {
50: '#6c54a2',
500: '#1f137b',
950: '#000000',
},
}SCSS
$custom: #1f137b; $custom-light: #6c54a2; $custom-dark: #000000;
JSON
{
"hex": "#1f137b",
"rgb": {
"r": 31,
"g": 19,
"b": 123
},
"hsl": {
"h": 246.923,
"s": 73.239,
"l": 27.843
},
"oklch": {
"l": 0.29715,
"c": 0.1617,
"h": 275.3
},
"luminance": 0.02187
}Semantic roles & 50–950 ramp
primary
#1F137B
secondary
#A3B139
accent
#F038DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F