#1F107E#1F107E
#1F107E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.168 H 275.2°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).
Color values
| HEX | #1F107E |
|---|---|
| RGB | rgb(31, 16, 126) |
| HSL | hsl(248, 77%, 28%) |
| HSV | hsv(248, 87%, 49%) |
| CMYK | cmyk(75.4%, 87.3%, 0%, 50.6%) |
| CIE-LAB | lab(16.34, 41.67, -57.76) |
| CIE-LCH | lch(16.34, 71.22, 305.81°) |
| OKLab | oklab(29.76% 0.0152 -0.1669) |
| OKLCH | oklch(29.76% 0.168 275.2) |
| XYZ | xyz(4.5150, 2.1678, 19.9151) |
| Luminance | 0.0217 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 2.98
Darkblue
#00008B
ΔE00 3.21
Deep Blue
#040273
ΔE00 3.30
Dark Royal Blue
#02066F
ΔE00 3.38
Midnight Blue
#191970
ΔE00 3.42
Royal
#0C1793
ΔE00 3.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F107E #6F7E10
analogous
#10387E #1F107E #56107E
triadic
#1F107E #7E1F10 #107E1F
tetradic
#1F107E #7E1038 #6F7E10 #107E56
square
#1F107E #7E1038 #6F7E10 #107E56
split-complementary
#1F107E #7E5610 #387E10
monochromatic
#07031B #120948 #1F107E #2C17B4 #3F25E3
Accessibility & contrast
On white
14.65
#1F107E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#1F107E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F107E
14.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F107E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F107E | 1.00 | 14.65 | 1.43 | 14.65 |
| #FFFFFF | 14.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #1f107e; /* rgb */ color: rgb(31, 16, 126); /* oklch */ color: oklch(29.8% 0.168 275.2);
Tailwind
colors: {
custom: {
50: '#6d53a5',
500: '#1f107e',
950: '#000000',
},
}SCSS
$custom: #1f107e; $custom-light: #6d53a5; $custom-dark: #000000;
JSON
{
"hex": "#1f107e",
"rgb": {
"r": 31,
"g": 16,
"b": 126
},
"hsl": {
"h": 248.182,
"s": 77.465,
"l": 27.843
},
"oklch": {
"l": 0.2976,
"c": 0.16764,
"h": 275.2
},
"luminance": 0.02168
}Semantic roles & 50–950 ramp
primary
#1F107E
secondary
#A3B436
accent
#F434DA
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F