#1F2B71#1F2B71
#1F2B71 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.121 H 270.7°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2B71 |
|---|---|
| RGB | rgb(31, 43, 113) |
| HSL | hsl(231, 57%, 28%) |
| HSV | hsv(231, 73%, 44%) |
| CMYK | cmyk(72.6%, 61.9%, 0%, 55.7%) |
| CIE-LAB | lab(20.87, 20.73, -41.99) |
| CIE-LCH | lch(20.87, 46.83, 296.27°) |
| OKLab | oklab(32.59% 0.0015 -0.121) |
| OKLCH | oklch(32.59% 0.121 270.7) |
| XYZ | xyz(4.4086, 3.2109, 16.0070) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.55
Marine
#042E60
ΔE00 5.63
Marine Blue
#01386A
ΔE00 7.73
Navy Blue
#1B2A4A
ΔE00 7.82
Darkslateblue
#483D8B
ΔE00 8.04
Royal
#0C1793
ΔE00 8.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2B71 #71651F
analogous
#1F5471 #1F2B71 #3C1F71
triadic
#1F2B71 #711F2B #2B711F
tetradic
#1F2B71 #711F54 #71651F #1F713C
square
#1F2B71 #711F54 #71651F #1F713C
split-complementary
#1F2B71 #713C1F #54711F
monochromatic
#070918 #121941 #1F2B71 #2C3DA1 #4054CB
Accessibility & contrast
On white
12.79
#1F2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#1F2B71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2B71
12.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2B71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2B71 | 1.00 | 12.79 | 1.64 | 12.79 |
| #FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #1f2b71; /* rgb */ color: rgb(31, 43, 113); /* oklch */ color: oklch(32.6% 0.121 270.7);
Tailwind
colors: {
custom: {
50: '#67649a',
500: '#1f2b71',
950: '#000000',
},
}SCSS
$custom: #1f2b71; $custom-light: #67649a; $custom-dark: #000000;
JSON
{
"hex": "#1f2b71",
"rgb": {
"r": 31,
"g": 43,
"b": 113
},
"hsl": {
"h": 231.22,
"s": 56.944,
"l": 28.235
},
"oklch": {
"l": 0.3259,
"c": 0.12106,
"h": 270.7
},
"luminance": 0.03211
}Semantic roles & 50–950 ramp
primary
#1F2B71
secondary
#A59747
accent
#CA48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E