#1F117C#1F117C
#1F117C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.165 H 275.4°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).
Color values
| HEX | #1F117C |
|---|---|
| RGB | rgb(31, 17, 124) |
| HSL | hsl(248, 76%, 28%) |
| HSV | hsv(248, 86%, 49%) |
| CMYK | cmyk(75%, 86.3%, 0%, 51.4%) |
| CIE-LAB | lab(16.24, 40.60, -56.66) |
| CIE-LCH | lch(16.24, 69.70, 305.62°) |
| OKLab | oklab(29.62% 0.0155 -0.1638) |
| OKLCH | oklch(29.62% 0.165 275.4) |
| XYZ | xyz(4.4024, 2.1470, 19.2473) |
| Luminance | 0.0215 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.08
Navy
#000080
ΔE00 3.18
Dark Royal Blue
#02066F
ΔE00 3.28
Deep Blue
#040273
ΔE00 3.30
Darkblue
#00008B
ΔE00 3.52
Royal
#0C1793
ΔE00 3.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F117C #6E7C11
analogous
#11397C #1F117C #54117C
triadic
#1F117C #7C1F11 #117C1F
tetradic
#1F117C #7C1139 #6E7C11 #117C54
square
#1F117C #7C1139 #6E7C11 #117C54
split-complementary
#1F117C #7C5411 #397C11
monochromatic
#07041B #120A46 #1F117C #2C18B2 #3F26E1
Accessibility & contrast
On white
14.69
#1F117C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#1F117C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F117C
14.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F117C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F117C | 1.00 | 14.69 | 1.43 | 14.69 |
| #FFFFFF | 14.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #1f117c; /* rgb */ color: rgb(31, 17, 124); /* oklch */ color: oklch(29.6% 0.165 275.4);
Tailwind
colors: {
custom: {
50: '#6c53a3',
500: '#1f117c',
950: '#000000',
},
}SCSS
$custom: #1f117c; $custom-light: #6c53a3; $custom-dark: #000000;
JSON
{
"hex": "#1f117c",
"rgb": {
"r": 31,
"g": 17,
"b": 124
},
"hsl": {
"h": 247.85,
"s": 75.887,
"l": 27.647
},
"oklch": {
"l": 0.29615,
"c": 0.1645,
"h": 275.4
},
"luminance": 0.02147
}Semantic roles & 50–950 ramp
primary
#1F117C
secondary
#A2B237
accent
#F235DA
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F