#1F2286#1F2286
#1F2286 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.161 H 272.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2286 |
|---|---|
| RGB | rgb(31, 34, 134) |
| HSL | hsl(238, 62%, 32%) |
| HSV | hsv(238, 77%, 53%) |
| CMYK | cmyk(76.9%, 74.6%, 0%, 47.5%) |
| CIE-LAB | lab(20.66, 34.66, -55.69) |
| CIE-LCH | lch(20.66, 65.59, 301.90°) |
| OKLab | oklab(33.06% 0.0058 -0.1612) |
| OKLCH | oklch(33.06% 0.161 272.1) |
| XYZ | xyz(5.4387, 3.1560, 22.8722) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.33
Midnight Blue
#191970
ΔE00 3.83
Cobalt Blue
#030AA7
ΔE00 6.20
Darkblue
#00008B
ΔE00 6.33
Navy
#000080
ΔE00 6.64
Dark Royal Blue
#02066F
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2286 #86831F
analogous
#1F5686 #1F2286 #4F1F86
triadic
#1F2286 #861F22 #22861F
tetradic
#1F2286 #861F56 #86831F #1F864F
square
#1F2286 #861F56 #86831F #1F864F
split-complementary
#1F2286 #864F1F #56861F
monochromatic
#080923 #141554 #1F2286 #2A2FB8 #4A4ED5
Accessibility & contrast
On white
12.87
#1F2286 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#1F2286 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2286
12.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2286 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2286 | 1.00 | 12.87 | 1.63 | 12.87 |
| #FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003789
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f2286; /* rgb */ color: rgb(31, 34, 134); /* oklch */ color: oklch(33.1% 0.161 272.1);
Tailwind
colors: {
custom: {
50: '#6d5eaa',
500: '#1f2286',
950: '#000000',
},
}SCSS
$custom: #1f2286; $custom-light: #6d5eaa; $custom-dark: #000000;
JSON
{
"hex": "#1f2286",
"rgb": {
"r": 31,
"g": 34,
"b": 134
},
"hsl": {
"h": 238.252,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33059,
"c": 0.16127,
"h": 272.1
},
"luminance": 0.03157
}Semantic roles & 50–950 ramp
primary
#1F2286
secondary
#B8B449
accent
#E142E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F