#1F298E#1F298E
#1F298E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.164 H 270.4°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).
Color values
| HEX | #1F298E |
|---|---|
| RGB | rgb(31, 41, 142) |
| HSL | hsl(235, 64%, 34%) |
| HSV | hsv(235, 78%, 56%) |
| CMYK | cmyk(78.2%, 71.1%, 0%, 44.3%) |
| CIE-LAB | lab(23.10, 33.16, -56.66) |
| CIE-LCH | lch(23.10, 65.65, 300.34°) |
| OKLab | oklab(35.07% 0.0011 -0.164) |
| OKLCH | oklch(35.07% 0.164 270.4) |
| XYZ | xyz(6.2388, 3.8295, 25.9963) |
| Luminance | 0.0383 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.48
Sapphire (survey)
#2138AB
ΔE00 5.54
Midnight Blue
#191970
ΔE00 5.74
Cobalt Blue
#030AA7
ΔE00 6.85
Indigo Blue
#3A18B1
ΔE00 7.13
Royal Blue (survey)
#0504AA
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F298E #8E841F
analogous
#1F618E #1F298E #4D1F8E
triadic
#1F298E #8E1F29 #298E1F
tetradic
#1F298E #8E1F61 #8E841F #1F8E4D
square
#1F298E #8E1F61 #8E841F #1F8E4D
split-complementary
#1F298E #8E4D1F #618E1F
monochromatic
#090C2A #141A5C #1F298E #2A38C0 #4F5BD9
Accessibility & contrast
On white
11.89
#1F298E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#1F298E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F298E
11.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F298E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F298E | 1.00 | 11.89 | 1.77 | 11.89 |
| #FFFFFF | 11.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004558
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f298e; /* rgb */ color: rgb(31, 41, 142); /* oklch */ color: oklch(35.1% 0.164 270.4);
Tailwind
colors: {
custom: {
50: '#6e63b0',
500: '#1f298e',
950: '#000000',
},
}SCSS
$custom: #1f298e; $custom-light: #6e63b0; $custom-dark: #000000;
JSON
{
"hex": "#1f298e",
"rgb": {
"r": 31,
"g": 41,
"b": 142
},
"hsl": {
"h": 234.595,
"s": 64.162,
"l": 33.922
},
"oklch": {
"l": 0.35065,
"c": 0.16402,
"h": 270.4
},
"luminance": 0.0383
}Semantic roles & 50–950 ramp
primary
#1F298E
secondary
#BBB24D
accent
#D841E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980