#1F1D9F#1F1D9F
#1F1D9F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.197 H 270.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1D9F |
|---|---|
| RGB | rgb(31, 29, 159) |
| HSL | hsl(241, 69%, 37%) |
| HSV | hsv(241, 82%, 62%) |
| CMYK | cmyk(80.5%, 81.8%, 0%, 37.6%) |
| CIE-LAB | lab(22.56, 45.95, -68.03) |
| CIE-LCH | lch(22.56, 82.09, 304.04°) |
| OKLab | oklab(35.24% 0.0027 -0.1969) |
| OKLCH | oklch(35.24% 0.197 270.8) |
| XYZ | xyz(7.2603, 3.6724, 33.1204) |
| Luminance | 0.0367 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.40
Cobalt Blue
#030AA7
ΔE00 3.04
Royal Blue (survey)
#0504AA
ΔE00 3.58
Indigo Blue
#3A18B1
ΔE00 3.78
Ultramarine
#2000B1
ΔE00 4.00
True Blue
#010FCC
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1D9F #9D9F1D
analogous
#1D5C9F #1F1D9F #601D9F
triadic
#1F1D9F #9F1F1D #1D9F1F
tetradic
#1F1D9F #9F1D5C #9D9F1D #1D9F60
square
#1F1D9F #9F1D5C #9D9F1D #1D9F60
split-complementary
#1F1D9F #9F601D #5C9F1D
monochromatic
#0B0A37 #15146B #1F1D9F #2926D3 #5856E0
Accessibility & contrast
On white
12.11
#1F1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#1F1D9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1D9F
12.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1D9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1D9F | 1.00 | 12.11 | 1.73 | 12.11 |
| #FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#002F9D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f1d9f; /* rgb */ color: rgb(31, 29, 159); /* oklch */ color: oklch(35.2% 0.197 270.8);
Tailwind
colors: {
custom: {
50: '#745cbd',
500: '#1f1d9f',
950: '#000000',
},
}SCSS
$custom: #1f1d9f; $custom-light: #745cbd; $custom-dark: #000000;
JSON
{
"hex": "#1f1d9f",
"rgb": {
"r": 31,
"g": 29,
"b": 159
},
"hsl": {
"h": 240.923,
"s": 69.149,
"l": 36.863
},
"oklch": {
"l": 0.3524,
"c": 0.19695,
"h": 270.8
},
"luminance": 0.03673
}Semantic roles & 50–950 ramp
primary
#1F1D9F
secondary
#C2C454
accent
#EC3CE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981