#1F2386#1F2386
#1F2386 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.160 H 271.9°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2386 |
|---|---|
| RGB | rgb(31, 35, 134) |
| HSL | hsl(238, 62%, 32%) |
| HSV | hsv(238, 77%, 53%) |
| CMYK | cmyk(76.9%, 73.9%, 0%, 47.5%) |
| CIE-LAB | lab(20.88, 34.04, -55.32) |
| CIE-LCH | lch(20.88, 64.95, 301.61°) |
| OKLab | oklab(33.22% 0.0053 -0.1601) |
| OKLCH | oklch(33.22% 0.16 271.9) |
| XYZ | xyz(5.4677, 3.2140, 22.8818) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.55
Midnight Blue
#191970
ΔE00 3.95
Cobalt Blue
#030AA7
ΔE00 6.39
Darkblue
#00008B
ΔE00 6.59
Navy
#000080
ΔE00 6.90
Dark Royal Blue
#02066F
ΔE00 6.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2386 #86821F
analogous
#1F5686 #1F2386 #4F1F86
triadic
#1F2386 #861F23 #23861F
tetradic
#1F2386 #861F56 #86821F #1F864F
square
#1F2386 #861F56 #86821F #1F864F
split-complementary
#1F2386 #864F1F #56861F
monochromatic
#080923 #141654 #1F2386 #2A30B8 #4A50D5
Accessibility & contrast
On white
12.78
#1F2386 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#1F2386 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2386
12.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2386 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2386 | 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)
#003789
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f2386; /* rgb */ color: rgb(31, 35, 134); /* oklch */ color: oklch(33.2% 0.160 271.9);
Tailwind
colors: {
custom: {
50: '#6d5faa',
500: '#1f2386',
950: '#000000',
},
}SCSS
$custom: #1f2386; $custom-light: #6d5faa; $custom-dark: #000000;
JSON
{
"hex": "#1f2386",
"rgb": {
"r": 31,
"g": 35,
"b": 134
},
"hsl": {
"h": 237.67,
"s": 62.424,
"l": 32.353
},
"oklch": {
"l": 0.33218,
"c": 0.16019,
"h": 271.9
},
"luminance": 0.03215
}Semantic roles & 50–950 ramp
primary
#1F2386
secondary
#B8B349
accent
#DF42E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F