#1F2B8D#1F2B8D
#1F2B8D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.160 H 270.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2B8D |
|---|---|
| RGB | rgb(31, 43, 141) |
| HSL | hsl(233, 64%, 34%) |
| HSV | hsv(233, 78%, 55%) |
| CMYK | cmyk(78%, 69.5%, 0%, 44.7%) |
| CIE-LAB | lab(23.48, 31.49, -55.42) |
| CIE-LCH | lch(23.48, 63.74, 299.61°) |
| OKLab | oklab(35.31% 0.0001 -0.1604) |
| OKLCH | oklch(35.31% 0.16 270) |
| XYZ | xyz(6.2350, 3.9415, 25.6263) |
| Luminance | 0.0394 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 5.11
Sapphire (survey)
#2138AB
ΔE00 5.30
Midnight Blue
#191970
ΔE00 6.02
Darkslateblue
#483D8B
ΔE00 7.28
Blueberry
#464196
ΔE00 7.39
Cobalt Blue
#030AA7
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2B8D #8D811F
analogous
#1F628D #1F2B8D #4A1F8D
triadic
#1F2B8D #8D1F2B #2B8D1F
tetradic
#1F2B8D #8D1F62 #8D811F #1F8D4A
square
#1F2B8D #8D1F62 #8D811F #1F8D4A
split-complementary
#1F2B8D #8D4A1F #628D1F
monochromatic
#090C29 #141C5B #1F2B8D #2A3ABF #4E5DD8
Accessibility & contrast
On white
11.74
#1F2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#1F2B8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2B8D
11.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2B8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2B8D | 1.00 | 11.74 | 1.79 | 11.74 |
| #FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f2b8d; /* rgb */ color: rgb(31, 43, 141); /* oklch */ color: oklch(35.3% 0.160 270.0);
Tailwind
colors: {
custom: {
50: '#6e64af',
500: '#1f2b8d',
950: '#000000',
},
}SCSS
$custom: #1f2b8d; $custom-light: #6e64af; $custom-dark: #000000;
JSON
{
"hex": "#1f2b8d",
"rgb": {
"r": 31,
"g": 43,
"b": 141
},
"hsl": {
"h": 233.455,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.35307,
"c": 0.16039,
"h": 270
},
"luminance": 0.03942
}Semantic roles & 50–950 ramp
primary
#1F2B8D
secondary
#BBAF4D
accent
#D541E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F