#1F139F#1F139F
#1F139F is a dark, highly saturated blue. Relative luminance 0.033; OKLCH L 34.2% C 0.204 H 271.3°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).
Color values
| HEX | #1F139F |
|---|---|
| RGB | rgb(31, 19, 159) |
| HSL | hsl(245, 79%, 35%) |
| HSV | hsv(245, 88%, 62%) |
| CMYK | cmyk(80.5%, 88.1%, 0%, 37.6%) |
| CIE-LAB | lab(21.05, 50.40, -70.53) |
| CIE-LCH | lch(21.05, 86.68, 305.55°) |
| OKLab | oklab(34.2% 0.0048 -0.2039) |
| OKLCH | oklch(34.2% 0.204 271.3) |
| XYZ | xyz(7.0538, 3.2595, 33.0515) |
| Luminance | 0.0326 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 1.68
Royal Blue (survey)
#0504AA
ΔE00 2.14
Royal
#0C1793
ΔE00 2.27
Ultramarine
#2000B1
ΔE00 2.76
Indigo Blue
#3A18B1
ΔE00 3.81
Darkblue
#00008B
ΔE00 4.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F139F #939F13
analogous
#134D9F #1F139F #65139F
triadic
#1F139F #9F1F13 #139F1F
tetradic
#1F139F #9F134D #939F13 #139F65
square
#1F139F #9F134D #939F13 #139F65
split-complementary
#1F139F #9F6513 #4D9F13
monochromatic
#0A0632 #140C68 #1F139F #2A1AD6 #5244E9
Accessibility & contrast
On white
12.71
#1F139F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#1F139F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F139F
12.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F139F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F139F | 1.00 | 12.71 | 1.65 | 12.71 |
| #FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0039A3
Deuteranopia (green-blind)
#002B9D
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1f139f; /* rgb */ color: rgb(31, 19, 159); /* oklch */ color: oklch(34.2% 0.204 271.3);
Tailwind
colors: {
custom: {
50: '#7558bd',
500: '#1f139f',
950: '#000000',
},
}SCSS
$custom: #1f139f; $custom-light: #7558bd; $custom-dark: #000000;
JSON
{
"hex": "#1f139f",
"rgb": {
"r": 31,
"g": 19,
"b": 159
},
"hsl": {
"h": 245.143,
"s": 78.652,
"l": 34.902
},
"oklch": {
"l": 0.34204,
"c": 0.20401,
"h": 271.3
},
"luminance": 0.0326
}Semantic roles & 50–950 ramp
primary
#1F139F
secondary
#BEC945
accent
#F533E4
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981