#1F2D8E#1F2D8E
#1F2D8E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.159 H 269.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D8E |
|---|---|
| RGB | rgb(31, 45, 142) |
| HSL | hsl(232, 64%, 34%) |
| HSV | hsv(232, 78%, 56%) |
| CMYK | cmyk(78.2%, 68.3%, 0%, 44.3%) |
| CIE-LAB | lab(24.07, 30.55, -55.07) |
| CIE-LCH | lch(24.07, 62.98, 299.02°) |
| OKLab | oklab(35.77% -0.0011 -0.1594) |
| OKLCH | oklch(35.77% 0.159 269.6) |
| XYZ | xyz(6.3843, 4.1204, 26.0448) |
| Luminance | 0.0412 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.88
Royal
#0C1793
ΔE00 5.64
Midnight Blue
#191970
ΔE00 6.53
Blueberry
#464196
ΔE00 7.02
Darkslateblue
#483D8B
ΔE00 7.03
Cobalt Blue
#030AA7
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D8E #8E801F
analogous
#1F658E #1F2D8E #491F8E
triadic
#1F2D8E #8E1F2D #2D8E1F
tetradic
#1F2D8E #8E1F65 #8E801F #1F8E49
square
#1F2D8E #8E1F65 #8E801F #1F8E49
split-complementary
#1F2D8E #8E491F #658E1F
monochromatic
#090D2A #141D5C #1F2D8E #2A3DC0 #4F60D9
Accessibility & contrast
On white
11.51
#1F2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#1F2D8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D8E
11.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D8E | 1.00 | 11.51 | 1.82 | 11.51 |
| #FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f2d8e; /* rgb */ color: rgb(31, 45, 142); /* oklch */ color: oklch(35.8% 0.159 269.6);
Tailwind
colors: {
custom: {
50: '#6e66b0',
500: '#1f2d8e',
950: '#000000',
},
}SCSS
$custom: #1f2d8e; $custom-light: #6e66b0; $custom-dark: #000000;
JSON
{
"hex": "#1f2d8e",
"rgb": {
"r": 31,
"g": 45,
"b": 142
},
"hsl": {
"h": 232.432,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.35765,
"c": 0.15937,
"h": 269.6
},
"luminance": 0.04121
}Semantic roles & 50–950 ramp
primary
#1F2D8E
secondary
#BBAE4D
accent
#D241E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80