#1F2D8D#1F2D8D
#1F2D8D is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.158 H 269.6°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D8D |
|---|---|
| RGB | rgb(31, 45, 141) |
| HSL | hsl(232, 64%, 34%) |
| HSV | hsv(232, 78%, 55%) |
| CMYK | cmyk(78%, 68.1%, 0%, 44.7%) |
| CIE-LAB | lab(23.97, 30.17, -54.61) |
| CIE-LCH | lch(23.97, 62.39, 298.92°) |
| OKLab | oklab(35.67% -0.0011 -0.158) |
| OKLCH | oklch(35.67% 0.158 269.6) |
| XYZ | xyz(6.3095, 4.0905, 25.6511) |
| Luminance | 0.0409 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.99
Royal
#0C1793
ΔE00 5.70
Midnight Blue
#191970
ΔE00 6.46
Darkslateblue
#483D8B
ΔE00 7.02
Blueberry
#464196
ΔE00 7.03
Cobalt Blue
#030AA7
ΔE00 8.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D8D #8D7F1F
analogous
#1F648D #1F2D8D #481F8D
triadic
#1F2D8D #8D1F2D #2D8D1F
tetradic
#1F2D8D #8D1F64 #8D7F1F #1F8D48
square
#1F2D8D #8D1F64 #8D7F1F #1F8D48
split-complementary
#1F2D8D #8D481F #648D1F
monochromatic
#090D29 #141D5B #1F2D8D #2A3DBF #4E60D8
Accessibility & contrast
On white
11.55
#1F2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#1F2D8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D8D
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D8D | 1.00 | 11.55 | 1.82 | 11.55 |
| #FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f2d8d; /* rgb */ color: rgb(31, 45, 141); /* oklch */ color: oklch(35.7% 0.158 269.6);
Tailwind
colors: {
custom: {
50: '#6e66af',
500: '#1f2d8d',
950: '#000000',
},
}SCSS
$custom: #1f2d8d; $custom-light: #6e66af; $custom-dark: #000000;
JSON
{
"hex": "#1f2d8d",
"rgb": {
"r": 31,
"g": 45,
"b": 141
},
"hsl": {
"h": 232.364,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.35665,
"c": 0.15803,
"h": 269.6
},
"luminance": 0.04091
}Semantic roles & 50–950 ramp
primary
#1F2D8D
secondary
#BBAD4D
accent
#D241E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F