#1F1281#1F1281
#1F1281 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.170 H 274.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1281 |
|---|---|
| RGB | rgb(31, 18, 129) |
| HSL | hsl(247, 76%, 29%) |
| HSV | hsv(247, 86%, 51%) |
| CMYK | cmyk(76%, 86%, 0%, 49.4%) |
| CIE-LAB | lab(17.03, 41.71, -58.53) |
| CIE-LCH | lch(17.03, 71.87, 305.47°) |
| OKLab | oklab(30.34% 0.0136 -0.1692) |
| OKLCH | oklch(30.34% 0.17 274.6) |
| XYZ | xyz(4.7425, 2.3084, 20.9603) |
| Luminance | 0.0231 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.93
Darkblue
#00008B
ΔE00 3.24
Navy
#000080
ΔE00 3.25
Midnight Blue
#191970
ΔE00 3.51
Deep Blue
#040273
ΔE00 3.76
Dark Royal Blue
#02066F
ΔE00 3.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1281 #748112
analogous
#123D81 #1F1281 #571281
triadic
#1F1281 #811F12 #12811F
tetradic
#1F1281 #81123D #748112 #128157
square
#1F1281 #81123D #748112 #128157
split-complementary
#1F1281 #815712 #3D8112
monochromatic
#06041B #120B4B #1F1281 #2C19B7 #412CE2
Accessibility & contrast
On white
14.37
#1F1281 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#1F1281 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1281
14.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1281 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1281 | 1.00 | 14.37 | 1.46 | 14.37 |
| #FFFFFF | 14.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00257F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1f1281; /* rgb */ color: rgb(31, 18, 129); /* oklch */ color: oklch(30.3% 0.170 274.6);
Tailwind
colors: {
custom: {
50: '#6d54a7',
500: '#1f1281',
950: '#000000',
},
}SCSS
$custom: #1f1281; $custom-light: #6d54a7; $custom-dark: #000000;
JSON
{
"hex": "#1f1281",
"rgb": {
"r": 31,
"g": 18,
"b": 129
},
"hsl": {
"h": 247.027,
"s": 75.51,
"l": 28.824
},
"oklch": {
"l": 0.3034,
"c": 0.16978,
"h": 274.6
},
"luminance": 0.02309
}Semantic roles & 50–950 ramp
primary
#1F1281
secondary
#A8B738
accent
#F236DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F