#1F207C#1F207C
#1F207C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.150 H 273.3°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).
Color values
| HEX | #1F207C |
|---|---|
| RGB | rgb(31, 32, 124) |
| HSL | hsl(239, 60%, 30%) |
| HSV | hsv(239, 75%, 49%) |
| CMYK | cmyk(75%, 74.2%, 0%, 51.4%) |
| CIE-LAB | lab(19.14, 32.31, -51.87) |
| CIE-LCH | lch(19.14, 61.11, 301.92°) |
| OKLab | oklab(31.65% 0.0086 -0.15) |
| OKLCH | oklch(31.65% 0.15 273.3) |
| XYZ | xyz(4.7185, 2.7791, 19.3526) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.39
Royal
#0C1793
ΔE00 4.24
Dark Royal Blue
#02066F
ΔE00 5.91
Deep Blue
#040273
ΔE00 6.36
Navy
#000080
ΔE00 6.40
Darkblue
#00008B
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F207C #7C7B1F
analogous
#1F4E7C #1F207C #4C1F7C
triadic
#1F207C #7C1F20 #207C1F
tetradic
#1F207C #7C1F4E #7C7B1F #1F7C4C
square
#1F207C #7C1F4E #7C7B1F #1F7C4C
split-complementary
#1F207C #7C4C1F #4E7C1F
monochromatic
#07071A #13134B #1F207C #2B2DAD #4546D0
Accessibility & contrast
On white
13.50
#1F207C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#1F207C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F207C
13.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F207C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F207C | 1.00 | 13.50 | 1.56 | 13.50 |
| #FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #1f207c; /* rgb */ color: rgb(31, 32, 124); /* oklch */ color: oklch(31.6% 0.150 273.3);
Tailwind
colors: {
custom: {
50: '#6a5ca3',
500: '#1f207c',
950: '#000000',
},
}SCSS
$custom: #1f207c; $custom-light: #6a5ca3; $custom-dark: #000000;
JSON
{
"hex": "#1f207c",
"rgb": {
"r": 31,
"g": 32,
"b": 124
},
"hsl": {
"h": 239.355,
"s": 60,
"l": 30.392
},
"oklch": {
"l": 0.31649,
"c": 0.15027,
"h": 273.3
},
"luminance": 0.0278
}Semantic roles & 50–950 ramp
primary
#1F207C
secondary
#AFAE48
accent
#E145E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F