#1F157C#1F157C
#1F157C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.161 H 275.0°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).
Color values
| HEX | #1F157C |
|---|---|
| RGB | rgb(31, 21, 124) |
| HSL | hsl(246, 71%, 28%) |
| HSV | hsv(246, 83%, 49%) |
| CMYK | cmyk(75%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(16.90, 38.65, -55.56) |
| CIE-LCH | lch(16.90, 67.68, 304.83°) |
| OKLab | oklab(30.07% 0.014 -0.1606) |
| OKLCH | oklch(30.07% 0.161 275) |
| XYZ | xyz(4.4701, 2.2824, 19.2698) |
| Luminance | 0.0228 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.52
Royal
#0C1793
ΔE00 3.49
Dark Royal Blue
#02066F
ΔE00 3.74
Navy
#000080
ΔE00 3.86
Deep Blue
#040273
ΔE00 3.91
Darkblue
#00008B
ΔE00 4.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F157C #727C15
analogous
#153E7C #1F157C #52157C
triadic
#1F157C #7C1F15 #157C1F
tetradic
#1F157C #7C153E #727C15 #157C52
square
#1F157C #7C153E #727C15 #157C52
split-complementary
#1F157C #7C5215 #3E7C15
monochromatic
#07041A #120C48 #1F157C #2C1EB0 #4030DC
Accessibility & contrast
On white
14.42
#1F157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#1F157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F157C
14.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F157C | 1.00 | 14.42 | 1.46 | 14.42 |
| #FFFFFF | 14.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #1f157c; /* rgb */ color: rgb(31, 21, 124); /* oklch */ color: oklch(30.1% 0.161 275.0);
Tailwind
colors: {
custom: {
50: '#6c56a3',
500: '#1f157c',
950: '#000000',
},
}SCSS
$custom: #1f157c; $custom-light: #6c56a3; $custom-dark: #000000;
JSON
{
"hex": "#1f157c",
"rgb": {
"r": 31,
"g": 21,
"b": 124
},
"hsl": {
"h": 245.825,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.30074,
"c": 0.16126,
"h": 275
},
"luminance": 0.02283
}Semantic roles & 50–950 ramp
primary
#1F157C
secondary
#A6B13C
accent
#EE3ADC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F