#1F1F92#1F1F92
#1F1F92 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.180 H 271.6°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1F92 |
|---|---|
| RGB | rgb(31, 31, 146) |
| HSL | hsl(240, 65%, 35%) |
| HSV | hsv(240, 79%, 57%) |
| CMYK | cmyk(78.8%, 78.8%, 0%, 42.7%) |
| CIE-LAB | lab(21.38, 40.61, -61.98) |
| CIE-LCH | lch(21.38, 74.10, 303.23°) |
| OKLab | oklab(33.97% 0.0049 -0.1794) |
| OKLCH | oklch(33.97% 0.18 271.6) |
| XYZ | xyz(6.2416, 3.3459, 27.5054) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.92
Cobalt Blue
#030AA7
ΔE00 4.30
Royal Blue (survey)
#0504AA
ΔE00 4.90
Midnight Blue
#191970
ΔE00 5.29
Indigo Blue
#3A18B1
ΔE00 5.42
Darkblue
#00008B
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1F92 #92921F
analogous
#1F5992 #1F1F92 #591F92
triadic
#1F1F92 #921F1F #1F921F
tetradic
#1F1F92 #921F59 #92921F #1F9259
square
#1F1F92 #921F59 #92921F #1F9259
split-complementary
#1F1F92 #92591F #59921F
monochromatic
#0A0A2D #141460 #1F1F92 #2A2AC4 #5151DA
Accessibility & contrast
On white
12.58
#1F1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#1F1F92 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1F92
12.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1F92 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1F92 | 1.00 | 12.58 | 1.67 | 12.58 |
| #FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003995
Deuteranopia (green-blind)
#002D90
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #1f1f92; /* rgb */ color: rgb(31, 31, 146); /* oklch */ color: oklch(34.0% 0.180 271.6);
Tailwind
colors: {
custom: {
50: '#705db3',
500: '#1f1f92',
950: '#000000',
},
}SCSS
$custom: #1f1f92; $custom-light: #705db3; $custom-dark: #000000;
JSON
{
"hex": "#1f1f92",
"rgb": {
"r": 31,
"g": 31,
"b": 146
},
"hsl": {
"h": 240,
"s": 64.972,
"l": 34.706
},
"oklch": {
"l": 0.33967,
"c": 0.17951,
"h": 271.6
},
"luminance": 0.03347
}Semantic roles & 50–950 ramp
primary
#1F1F92
secondary
#BDBD50
accent
#E840E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980