#1F138C#1F138C
#1F138C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.182 H 273.2°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).
Color values
| HEX | #1F138C |
|---|---|
| RGB | rgb(31, 19, 140) |
| HSL | hsl(246, 76%, 31%) |
| HSV | hsv(246, 86%, 55%) |
| CMYK | cmyk(77.9%, 86.4%, 0%, 45.1%) |
| CIE-LAB | lab(18.58, 44.68, -62.88) |
| CIE-LCH | lch(18.58, 77.14, 305.39°) |
| OKLab | oklab(31.81% 0.0101 -0.1819) |
| OKLCH | oklch(31.81% 0.182 273.2) |
| XYZ | xyz(5.5300, 2.6499, 25.0259) |
| Luminance | 0.0265 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.68
Darkblue
#00008B
ΔE00 3.09
Cobalt Blue
#030AA7
ΔE00 3.71
Navy
#000080
ΔE00 3.82
Indigo (survey)
#380282
ΔE00 4.08
Royal Blue (survey)
#0504AA
ΔE00 4.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F138C #808C13
analogous
#13438C #1F138C #5B138C
triadic
#1F138C #8C1F13 #138C1F
tetradic
#1F138C #8C1343 #808C13 #138C5B
square
#1F138C #8C1343 #808C13 #138C5B
split-complementary
#1F138C #8C5B13 #438C13
monochromatic
#070420 #130C56 #1F138C #2B1AC2 #4736E4
Accessibility & contrast
On white
13.72
#1F138C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#1F138C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F138C
13.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F138C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F138C | 1.00 | 13.72 | 1.53 | 13.72 |
| #FFFFFF | 13.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #1f138c; /* rgb */ color: rgb(31, 19, 140); /* oklch */ color: oklch(31.8% 0.182 273.2);
Tailwind
colors: {
custom: {
50: '#7056af',
500: '#1f138c',
950: '#000000',
},
}SCSS
$custom: #1f138c; $custom-light: #7056af; $custom-dark: #000000;
JSON
{
"hex": "#1f138c",
"rgb": {
"r": 31,
"g": 19,
"b": 140
},
"hsl": {
"h": 245.95,
"s": 76.101,
"l": 31.176
},
"oklch": {
"l": 0.31811,
"c": 0.18213,
"h": 273.2
},
"luminance": 0.02651
}Semantic roles & 50–950 ramp
primary
#1F138C
secondary
#B3C03B
accent
#F335E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880