#1F2B7F#1F2B7F
#1F2B7F is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.9% C 0.141 H 270.5°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2B7F |
|---|---|
| RGB | rgb(31, 43, 127) |
| HSL | hsl(233, 61%, 31%) |
| HSV | hsv(233, 76%, 50%) |
| CMYK | cmyk(75.6%, 66.1%, 0%, 50.2%) |
| CIE-LAB | lab(22.13, 26.18, -48.86) |
| CIE-LCH | lch(22.13, 55.43, 298.18°) |
| OKLab | oklab(33.91% 0.0011 -0.1412) |
| OKLCH | oklch(33.91% 0.141 270.5) |
| XYZ | xyz(5.2584, 3.5508, 20.4828) |
| Luminance | 0.0355 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.21
Royal
#0C1793
ΔE00 6.38
Sapphire (survey)
#2138AB
ΔE00 7.00
Marine
#042E60
ΔE00 7.27
Darkslateblue
#483D8B
ΔE00 7.34
Blueberry
#464196
ΔE00 7.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2B7F #7F731F
analogous
#1F5B7F #1F2B7F #431F7F
triadic
#1F2B7F #7F1F2B #2B7F1F
tetradic
#1F2B7F #7F1F5B #7F731F #1F7F43
square
#1F2B7F #7F1F5B #7F731F #1F7F43
split-complementary
#1F2B7F #7F431F #5B7F1F
monochromatic
#070A1D #131A4E #1F2B7F #2B3CB0 #4658D2
Accessibility & contrast
On white
12.28
#1F2B7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#1F2B7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2B7F
12.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2B7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2B7F | 1.00 | 12.28 | 1.71 | 12.28 |
| #FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #1f2b7f; /* rgb */ color: rgb(31, 43, 127); /* oklch */ color: oklch(33.9% 0.141 270.5);
Tailwind
colors: {
custom: {
50: '#6a64a5',
500: '#1f2b7f',
950: '#000000',
},
}SCSS
$custom: #1f2b7f; $custom-light: #6a64a5; $custom-dark: #000000;
JSON
{
"hex": "#1f2b7f",
"rgb": {
"r": 31,
"g": 43,
"b": 127
},
"hsl": {
"h": 232.5,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.33909,
"c": 0.14121,
"h": 270.5
},
"luminance": 0.03551
}Semantic roles & 50–950 ramp
primary
#1F2B7F
secondary
#B2A548
accent
#D044E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F