#1F137F#1F137F
#1F137F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.167 H 274.8°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).
Color values
| HEX | #1F137F |
|---|---|
| RGB | rgb(31, 19, 127) |
| HSL | hsl(247, 74%, 29%) |
| HSV | hsv(247, 85%, 50%) |
| CMYK | cmyk(75.6%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(16.94, 40.61, -57.42) |
| CIE-LCH | lch(16.94, 70.33, 305.27°) |
| OKLab | oklab(30.2% 0.0139 -0.166) |
| OKLCH | oklch(30.2% 0.167 274.8) |
| XYZ | xyz(4.6274, 2.2889, 20.2725) |
| Luminance | 0.0229 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.14
Midnight Blue
#191970
ΔE00 3.15
Navy
#000080
ΔE00 3.43
Darkblue
#00008B
ΔE00 3.53
Dark Royal Blue
#02066F
ΔE00 3.74
Deep Blue
#040273
ΔE00 3.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F137F #737F13
analogous
#133D7F #1F137F #55137F
triadic
#1F137F #7F1F13 #137F1F
tetradic
#1F137F #7F133D #737F13 #137F55
square
#1F137F #7F133D #737F13 #137F55
split-complementary
#1F137F #7F5513 #3D7F13
monochromatic
#06041B #120B4A #1F137F #2C1BB4 #412DE0
Accessibility & contrast
On white
14.41
#1F137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#1F137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F137F
14.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F137F | 1.00 | 14.41 | 1.46 | 14.41 |
| #FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1f137f; /* rgb */ color: rgb(31, 19, 127); /* oklch */ color: oklch(30.2% 0.167 274.8);
Tailwind
colors: {
custom: {
50: '#6d55a5',
500: '#1f137f',
950: '#000000',
},
}SCSS
$custom: #1f137f; $custom-light: #6d55a5; $custom-dark: #000000;
JSON
{
"hex": "#1f137f",
"rgb": {
"r": 31,
"g": 19,
"b": 127
},
"hsl": {
"h": 246.667,
"s": 73.973,
"l": 28.627
},
"oklch": {
"l": 0.30203,
"c": 0.16659,
"h": 274.8
},
"luminance": 0.02289
}Semantic roles & 50–950 ramp
primary
#1F137F
secondary
#A7B439
accent
#F137DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F