#1F2B80#1F2B80
#1F2B80 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.143 H 270.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2B80 |
|---|---|
| RGB | rgb(31, 43, 128) |
| HSL | hsl(233, 61%, 31%) |
| HSV | hsv(233, 76%, 50%) |
| CMYK | cmyk(75.8%, 66.4%, 0%, 49.8%) |
| CIE-LAB | lab(22.22, 26.56, -49.34) |
| CIE-LCH | lch(22.22, 56.04, 298.30°) |
| OKLab | oklab(34.01% 0.0011 -0.1426) |
| OKLCH | oklch(34.01% 0.143 270.4) |
| XYZ | xyz(5.3239, 3.5770, 20.8277) |
| Luminance | 0.0358 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.24
Royal
#0C1793
ΔE00 6.27
Sapphire (survey)
#2138AB
ΔE00 6.87
Darkslateblue
#483D8B
ΔE00 7.32
Marine
#042E60
ΔE00 7.39
Blueberry
#464196
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2B80 #80741F
analogous
#1F5B80 #1F2B80 #431F80
triadic
#1F2B80 #801F2B #2B801F
tetradic
#1F2B80 #801F5B #80741F #1F8043
square
#1F2B80 #801F5B #80741F #1F8043
split-complementary
#1F2B80 #80431F #5B801F
monochromatic
#070A1D #131A4F #1F2B80 #2B3CB1 #4758D2
Accessibility & contrast
On white
12.24
#1F2B80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#1F2B80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2B80
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2B80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2B80 | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2b80; /* rgb */ color: rgb(31, 43, 128); /* oklch */ color: oklch(34.0% 0.143 270.4);
Tailwind
colors: {
custom: {
50: '#6a64a6',
500: '#1f2b80',
950: '#000000',
},
}SCSS
$custom: #1f2b80; $custom-light: #6a64a6; $custom-dark: #000000;
JSON
{
"hex": "#1f2b80",
"rgb": {
"r": 31,
"g": 43,
"b": 128
},
"hsl": {
"h": 232.577,
"s": 61.006,
"l": 31.176
},
"oklch": {
"l": 0.34007,
"c": 0.14261,
"h": 270.4
},
"luminance": 0.03578
}Semantic roles & 50–950 ramp
primary
#1F2B80
secondary
#B3A648
accent
#D044E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F