#1F1B94#1F1B94
#1F1B94 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.185 H 271.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1B94 |
|---|---|
| RGB | rgb(31, 27, 148) |
| HSL | hsl(242, 69%, 34%) |
| HSV | hsv(242, 82%, 58%) |
| CMYK | cmyk(79.1%, 81.8%, 0%, 42%) |
| CIE-LAB | lab(20.88, 43.41, -64.06) |
| CIE-LCH | lch(20.88, 77.38, 304.12°) |
| OKLab | oklab(33.68% 0.0058 -0.1854) |
| OKLCH | oklch(33.68% 0.185 271.8) |
| XYZ | xyz(6.3005, 3.2126, 28.2993) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.33
Cobalt Blue
#030AA7
ΔE00 3.47
Royal Blue (survey)
#0504AA
ΔE00 4.05
Darkblue
#00008B
ΔE00 4.67
Ultramarine
#2000B1
ΔE00 4.79
Indigo Blue
#3A18B1
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1B94 #90941B
analogous
#1B5494 #1F1B94 #5B1B94
triadic
#1F1B94 #941F1B #1B941F
tetradic
#1F1B94 #941B54 #90941B #1B945B
square
#1F1B94 #941B54 #90941B #1B945B
split-complementary
#1F1B94 #945B1B #54941B
monochromatic
#09082C #141260 #1F1B94 #2A24C8 #504BDE
Accessibility & contrast
On white
12.78
#1F1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#1F1B94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1B94
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1B94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1B94 | 1.00 | 12.78 | 1.64 | 12.78 |
| #FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002C92
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f1b94; /* rgb */ color: rgb(31, 27, 148); /* oklch */ color: oklch(33.7% 0.185 271.8);
Tailwind
colors: {
custom: {
50: '#715bb5',
500: '#1f1b94',
950: '#000000',
},
}SCSS
$custom: #1f1b94; $custom-light: #715bb5; $custom-dark: #000000;
JSON
{
"hex": "#1f1b94",
"rgb": {
"r": 31,
"g": 27,
"b": 148
},
"hsl": {
"h": 241.983,
"s": 69.143,
"l": 34.314
},
"oklch": {
"l": 0.33684,
"c": 0.18548,
"h": 271.8
},
"luminance": 0.03213
}Semantic roles & 50–950 ramp
primary
#1F1B94
secondary
#BCC04B
accent
#EC3CE6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980