#1F1970#1F1970
#1F1970 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.142 H 276.1°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).
Color values
| HEX | #1F1970 |
|---|---|
| RGB | rgb(31, 25, 112) |
| HSL | hsl(244, 64%, 27%) |
| HSV | hsv(244, 78%, 44%) |
| CMYK | cmyk(72.3%, 77.7%, 0%, 56.1%) |
| CIE-LAB | lab(16.29, 32.35, -48.85) |
| CIE-LCH | lch(16.29, 58.59, 303.51°) |
| OKLab | oklab(29.23% 0.015 -0.1412) |
| OKLCH | oklch(29.23% 0.142 276.1) |
| XYZ | xyz(3.8364, 2.1561, 15.5401) |
| Luminance | 0.0216 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 0.72
Dark Royal Blue
#02066F
ΔE00 4.28
Darkblue (survey)
#030764
ΔE00 4.43
Deep Blue
#040273
ΔE00 4.90
Royal
#0C1793
ΔE00 5.45
Navy
#000080
ΔE00 5.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F1970 #6A7019
analogous
#193F70 #1F1970 #4B1970
triadic
#1F1970 #701F19 #19701F
tetradic
#1F1970 #70193F #6A7019 #19704B
square
#1F1970 #70193F #6A7019 #19704B
split-complementary
#1F1970 #704B19 #3F7019
monochromatic
#070619 #110E3E #1F1970 #2D24A2 #3D32D1
Accessibility & contrast
On white
14.67
#1F1970 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#1F1970 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F1970
14.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F1970 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F1970 | 1.00 | 14.67 | 1.43 | 14.67 |
| #FFFFFF | 14.67 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.67 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #1f1970; /* rgb */ color: rgb(31, 25, 112); /* oklch */ color: oklch(29.2% 0.142 276.1);
Tailwind
colors: {
custom: {
50: '#68579a',
500: '#1f1970',
950: '#000000',
},
}SCSS
$custom: #1f1970; $custom-light: #68579a; $custom-dark: #000000;
JSON
{
"hex": "#1f1970",
"rgb": {
"r": 31,
"g": 25,
"b": 112
},
"hsl": {
"h": 244.138,
"s": 63.504,
"l": 26.863
},
"oklch": {
"l": 0.29228,
"c": 0.142,
"h": 276.1
},
"luminance": 0.02156
}Semantic roles & 50–950 ramp
primary
#1F1970
secondary
#9EA540
accent
#E741DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E