#1F2D8C#1F2D8C
#1F2D8C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.157 H 269.6°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).
Color values
| HEX | #1F2D8C |
|---|---|
| RGB | rgb(31, 45, 140) |
| HSL | hsl(232, 64%, 34%) |
| HSV | hsv(232, 78%, 55%) |
| CMYK | cmyk(77.9%, 67.9%, 0%, 45.1%) |
| CIE-LAB | lab(23.87, 29.80, -54.15) |
| CIE-LCH | lch(23.87, 61.81, 298.82°) |
| OKLab | oklab(35.57% -0.001 -0.1567) |
| OKLCH | oklch(35.57% 0.157 269.6) |
| XYZ | xyz(6.2355, 4.0608, 25.2611) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.11
Royal
#0C1793
ΔE00 5.76
Midnight Blue
#191970
ΔE00 6.38
Darkslateblue
#483D8B
ΔE00 7.00
Blueberry
#464196
ΔE00 7.06
Cobalt Blue
#030AA7
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F2D8C #8C7E1F
analogous
#1F638C #1F2D8C #471F8C
triadic
#1F2D8C #8C1F2D #2D8C1F
tetradic
#1F2D8C #8C1F63 #8C7E1F #1F8C47
square
#1F2D8C #8C1F63 #8C7E1F #1F8C47
split-complementary
#1F2D8C #8C471F #638C1F
monochromatic
#090D28 #141D5A #1F2D8C #2A3DBE #4E5FD8
Accessibility & contrast
On white
11.59
#1F2D8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#1F2D8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F2D8C
11.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F2D8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F2D8C | 1.00 | 11.59 | 1.81 | 11.59 |
| #FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00348A
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #1f2d8c; /* rgb */ color: rgb(31, 45, 140); /* oklch */ color: oklch(35.6% 0.157 269.6);
Tailwind
colors: {
custom: {
50: '#6d66af',
500: '#1f2d8c',
950: '#000000',
},
}SCSS
$custom: #1f2d8c; $custom-light: #6d66af; $custom-dark: #000000;
JSON
{
"hex": "#1f2d8c",
"rgb": {
"r": 31,
"g": 45,
"b": 140
},
"hsl": {
"h": 232.294,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.35565,
"c": 0.15667,
"h": 269.6
},
"luminance": 0.04062
}Semantic roles & 50–950 ramp
primary
#1F2D8C
secondary
#BBAC4C
accent
#D141E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F