#1F177F#1F177F
#1F177F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.163 H 274.3°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).
Color values
| HEX | #1F177F |
|---|---|
| RGB | rgb(31, 23, 127) |
| HSL | hsl(245, 69%, 29%) |
| HSV | hsv(245, 82%, 50%) |
| CMYK | cmyk(75.6%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(17.63, 38.60, -56.27) |
| CIE-LCH | lch(17.63, 68.24, 304.44°) |
| OKLab | oklab(30.68% 0.0124 -0.1628) |
| OKLCH | oklch(30.68% 0.163 274.3) |
| XYZ | xyz(4.7010, 2.4359, 20.2970) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.70
Royal
#0C1793
ΔE00 3.04
Navy
#000080
ΔE00 4.16
Darkblue
#00008B
ΔE00 4.21
Dark Royal Blue
#02066F
ΔE00 4.24
Deep Blue
#040273
ΔE00 4.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F177F #777F17
analogous
#17437F #1F177F #53177F
triadic
#1F177F #7F1F17 #177F1F
tetradic
#1F177F #7F1743 #777F17 #177F53
square
#1F177F #7F1743 #777F17 #177F53
split-complementary
#1F177F #7F5317 #437F17
monochromatic
#06051A #120E4B #1F177F #2C20B3 #4336DB
Accessibility & contrast
On white
14.12
#1F177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#1F177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F177F
14.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F177F | 1.00 | 14.12 | 1.49 | 14.12 |
| #FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #1f177f; /* rgb */ color: rgb(31, 23, 127); /* oklch */ color: oklch(30.7% 0.163 274.3);
Tailwind
colors: {
custom: {
50: '#6c57a5',
500: '#1f177f',
950: '#000000',
},
}SCSS
$custom: #1f177f; $custom-light: #6c57a5; $custom-dark: #000000;
JSON
{
"hex": "#1f177f",
"rgb": {
"r": 31,
"g": 23,
"b": 127
},
"hsl": {
"h": 244.615,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.30683,
"c": 0.16323,
"h": 274.3
},
"luminance": 0.02436
}Semantic roles & 50–950 ramp
primary
#1F177F
secondary
#ABB43E
accent
#EC3CDF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F