#1F2B8F#1F2B8F
#1F2B8F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.163 H 270.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2B8F |
|---|---|
| RGB | rgb(31, 43, 143) |
| HSL | hsl(234, 64%, 34%) |
| HSV | hsv(234, 78%, 56%) |
| CMYK | cmyk(78.3%, 69.9%, 0%, 43.9%) |
| CIE-LAB | lab(23.68, 32.24, -56.33) |
| CIE-LCH | lch(23.68, 64.91, 299.78°) |
| OKLab | oklab(35.51% -0.0001 -0.1631) |
| OKLCH | oklch(35.51% 0.163 270) |
| XYZ | xyz(6.3852, 4.0015, 26.4171) |
| Luminance | 0.0400 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 5.00
Sapphire (survey)
#2138AB
ΔE00 5.09
Midnight Blue
#191970
ΔE00 6.20
Cobalt Blue
#030AA7
ΔE00 7.27
Darkslateblue
#483D8B
ΔE00 7.31
Blueberry
#464196
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2B8F #8F831F
analogous
#1F638F #1F2B8F #4B1F8F
triadic
#1F2B8F #8F1F2B #2B8F1F
tetradic
#1F2B8F #8F1F63 #8F831F #1F8F4B
square
#1F2B8F #8F1F63 #8F831F #1F8F4B
split-complementary
#1F2B8F #8F4B1F #638F1F
monochromatic
#090D2A #141C5D #1F2B8F #2A3AC1 #4F5ED9
Accessibility & contrast
On white
11.66
#1F2B8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#1F2B8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2B8F
11.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2B8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2B8F | 1.00 | 11.66 | 1.80 | 11.66 |
| #FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f2b8f; /* rgb */ color: rgb(31, 43, 143); /* oklch */ color: oklch(35.5% 0.163 270.0);
Tailwind
colors: {
custom: {
50: '#6e64b1',
500: '#1f2b8f',
950: '#000000',
},
}SCSS
$custom: #1f2b8f; $custom-light: #6e64b1; $custom-dark: #000000;
JSON
{
"hex": "#1f2b8f",
"rgb": {
"r": 31,
"g": 43,
"b": 143
},
"hsl": {
"h": 233.571,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.35513,
"c": 0.16306,
"h": 270
},
"luminance": 0.04002
}Semantic roles & 50–950 ramp
primary
#1F2B8F
secondary
#BCB04E
accent
#D540E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80