#1F2D80#1F2D80
#1F2D80 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.140 H 269.9°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D80 |
|---|---|
| RGB | rgb(31, 45, 128) |
| HSL | hsl(231, 61%, 31%) |
| HSV | hsv(231, 76%, 50%) |
| CMYK | cmyk(75.8%, 64.8%, 0%, 49.8%) |
| CIE-LAB | lab(22.74, 25.20, -48.48) |
| CIE-LCH | lch(22.74, 54.64, 297.46°) |
| OKLab | oklab(34.39% -0.0003 -0.1401) |
| OKLCH | oklch(34.39% 0.14 269.9) |
| XYZ | xyz(5.3984, 3.7260, 20.8526) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.83
Sapphire (survey)
#2138AB
ΔE00 6.68
Royal
#0C1793
ΔE00 6.85
Marine
#042E60
ΔE00 6.99
Darkslateblue
#483D8B
ΔE00 7.10
Blueberry
#464196
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D80 #80721F
analogous
#1F5D80 #1F2D80 #411F80
triadic
#1F2D80 #801F2D #2D801F
tetradic
#1F2D80 #801F5D #80721F #1F8041
square
#1F2D80 #801F5D #80721F #1F8041
split-complementary
#1F2D80 #80411F #5D801F
monochromatic
#070A1D #131C4F #1F2D80 #2B3EB1 #475BD2
Accessibility & contrast
On white
12.03
#1F2D80 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#1F2D80 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D80
12.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D80 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D80 | 1.00 | 12.03 | 1.75 | 12.03 |
| #FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #1f2d80; /* rgb */ color: rgb(31, 45, 128); /* oklch */ color: oklch(34.4% 0.140 269.9);
Tailwind
colors: {
custom: {
50: '#6a65a6',
500: '#1f2d80',
950: '#000000',
},
}SCSS
$custom: #1f2d80; $custom-light: #6a65a6; $custom-dark: #000000;
JSON
{
"hex": "#1f2d80",
"rgb": {
"r": 31,
"g": 45,
"b": 128
},
"hsl": {
"h": 231.34,
"s": 61.006,
"l": 31.176
},
"oklch": {
"l": 0.34392,
"c": 0.14008,
"h": 269.9
},
"luminance": 0.03727
}Semantic roles & 50–950 ramp
primary
#1F2D80
secondary
#B3A348
accent
#CD44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F