#1F1380#1F1380
#1F1380 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.168 H 274.6°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1380 |
|---|---|
| RGB | rgb(31, 19, 128) |
| HSL | hsl(247, 74%, 29%) |
| HSV | hsv(247, 85%, 50%) |
| CMYK | cmyk(75.8%, 85.2%, 0%, 49.8%) |
| CIE-LAB | lab(17.06, 40.93, -57.85) |
| CIE-LCH | lch(17.06, 70.86, 305.28°) |
| OKLab | oklab(30.33% 0.0136 -0.1672) |
| OKLCH | oklch(30.33% 0.168 274.6) |
| XYZ | xyz(4.6929, 2.3151, 20.6174) |
| Luminance | 0.0232 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.00
Midnight Blue
#191970
ΔE00 3.27
Navy
#000080
ΔE00 3.41
Darkblue
#00008B
ΔE00 3.46
Deep Blue
#040273
ΔE00 3.82
Dark Royal Blue
#02066F
ΔE00 3.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1380 #748013
analogous
#133E80 #1F1380 #561380
triadic
#1F1380 #801F13 #13801F
tetradic
#1F1380 #80133E #748013 #138056
square
#1F1380 #80133E #748013 #138056
split-complementary
#1F1380 #805613 #3E8013
monochromatic
#06041B #120B4B #1F1380 #2C1BB5 #412DE0
Accessibility & contrast
On white
14.35
#1F1380 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#1F1380 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1380
14.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1380 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1380 | 1.00 | 14.35 | 1.46 | 14.35 |
| #FFFFFF | 14.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00257E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1f1380; /* rgb */ color: rgb(31, 19, 128); /* oklch */ color: oklch(30.3% 0.168 274.6);
Tailwind
colors: {
custom: {
50: '#6d55a6',
500: '#1f1380',
950: '#000000',
},
}SCSS
$custom: #1f1380; $custom-light: #6d55a6; $custom-dark: #000000;
JSON
{
"hex": "#1f1380",
"rgb": {
"r": 31,
"g": 19,
"b": 128
},
"hsl": {
"h": 246.606,
"s": 74.15,
"l": 28.824
},
"oklch": {
"l": 0.30326,
"c": 0.1678,
"h": 274.6
},
"luminance": 0.02316
}Semantic roles & 50–950 ramp
primary
#1F1380
secondary
#A8B539
accent
#F137DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F