#1F1978#1F1978
#1F1978 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.152 H 275.0°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1978 |
|---|---|
| RGB | rgb(31, 25, 120) |
| HSL | hsl(244, 66%, 28%) |
| HSV | hsv(244, 79%, 47%) |
| CMYK | cmyk(74.2%, 79.2%, 0%, 52.9%) |
| CIE-LAB | lab(17.19, 35.13, -52.52) |
| CIE-LCH | lch(17.19, 63.19, 303.77°) |
| OKLab | oklab(30.14% 0.0132 -0.1519) |
| OKLCH | oklch(30.14% 0.152 275) |
| XYZ | xyz(4.3017, 2.3422, 17.9910) |
| Luminance | 0.0234 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.51
Royal
#0C1793
ΔE00 4.15
Dark Royal Blue
#02066F
ΔE00 4.23
Deep Blue
#040273
ΔE00 4.65
Darkblue (survey)
#030764
ΔE00 4.89
Navy
#000080
ΔE00 4.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1978 #727819
analogous
#194278 #1F1978 #4E1978
triadic
#1F1978 #781F19 #19781F
tetradic
#1F1978 #781942 #727819 #19784E
square
#1F1978 #781942 #727819 #19784E
split-complementary
#1F1978 #784E19 #427819
monochromatic
#070519 #120E45 #1F1978 #2C24AB #4036D5
Accessibility & contrast
On white
14.30
#1F1978 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#1F1978 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1978
14.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1978 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1978 | 1.00 | 14.30 | 1.47 | 14.30 |
| #FFFFFF | 14.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1f1978; /* rgb */ color: rgb(31, 25, 120); /* oklch */ color: oklch(30.1% 0.152 275.0);
Tailwind
colors: {
custom: {
50: '#6a58a0',
500: '#1f1978',
950: '#000000',
},
}SCSS
$custom: #1f1978; $custom-light: #6a58a0; $custom-dark: #000000;
JSON
{
"hex": "#1f1978",
"rgb": {
"r": 31,
"g": 25,
"b": 120
},
"hsl": {
"h": 243.789,
"s": 65.517,
"l": 28.431
},
"oklch": {
"l": 0.30135,
"c": 0.15246,
"h": 275
},
"luminance": 0.02343
}Semantic roles & 50–950 ramp
primary
#1F1978
secondary
#A6AD40
accent
#E83FDE
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F