#1F1FA0#1F1FA0
#1F1FA0 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.196 H 270.6°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1FA0 |
|---|---|
| RGB | rgb(31, 31, 160) |
| HSL | hsl(240, 68%, 37%) |
| HSV | hsv(240, 81%, 63%) |
| CMYK | cmyk(80.6%, 80.6%, 0%, 37.3%) |
| CIE-LAB | lab(23.03, 45.26, -67.86) |
| CIE-LCH | lch(23.03, 81.57, 303.70°) |
| OKLab | oklab(35.6% 0.002 -0.1965) |
| OKLCH | oklch(35.6% 0.196 270.6) |
| XYZ | xyz(7.3981, 3.8085, 33.5961) |
| Luminance | 0.0381 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.71
Cobalt Blue
#030AA7
ΔE00 3.38
Indigo Blue
#3A18B1
ΔE00 3.80
Royal Blue (survey)
#0504AA
ΔE00 3.91
Ultramarine
#2000B1
ΔE00 4.28
True Blue
#010FCC
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1FA0 #A0A01F
analogous
#1F60A0 #1F1FA0 #601FA0
triadic
#1F1FA0 #A01F1F #1FA01F
tetradic
#1F1FA0 #A01F60 #A0A01F #1FA060
square
#1F1FA0 #A01F60 #A0A01F #1FA060
split-complementary
#1F1FA0 #A0601F #60A01F
monochromatic
#0B0B39 #15156D #1F1FA0 #2929D3 #5A5ADF
Accessibility & contrast
On white
11.92
#1F1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#1F1FA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1FA0
11.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1FA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1FA0 | 1.00 | 11.92 | 1.76 | 11.92 |
| #FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00309E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f1fa0; /* rgb */ color: rgb(31, 31, 160); /* oklch */ color: oklch(35.6% 0.196 270.6);
Tailwind
colors: {
custom: {
50: '#745ebd',
500: '#1f1fa0',
950: '#000000',
},
}SCSS
$custom: #1f1fa0; $custom-light: #745ebd; $custom-dark: #000000;
JSON
{
"hex": "#1f1fa0",
"rgb": {
"r": 31,
"g": 31,
"b": 160
},
"hsl": {
"h": 240,
"s": 67.539,
"l": 37.451
},
"oklch": {
"l": 0.35603,
"c": 0.19648,
"h": 270.6
},
"luminance": 0.03809
}Semantic roles & 50–950 ramp
primary
#1F1FA0
secondary
#C3C358
accent
#EA3DEA
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981