#1F298D#1F298D
#1F298D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.163 H 270.4°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).
Color values
| HEX | #1F298D |
|---|---|
| RGB | rgb(31, 41, 141) |
| HSL | hsl(235, 64%, 34%) |
| HSV | hsv(235, 78%, 55%) |
| CMYK | cmyk(78%, 70.9%, 0%, 44.7%) |
| CIE-LAB | lab(23.00, 32.79, -56.21) |
| CIE-LCH | lch(23.00, 65.07, 300.26°) |
| OKLab | oklab(34.96% 0.0012 -0.1627) |
| OKLCH | oklch(34.96% 0.163 270.4) |
| XYZ | xyz(6.1641, 3.7996, 25.6027) |
| Luminance | 0.0380 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.53
Sapphire (survey)
#2138AB
ΔE00 5.64
Midnight Blue
#191970
ΔE00 5.64
Cobalt Blue
#030AA7
ΔE00 6.95
Indigo Blue
#3A18B1
ΔE00 7.26
Royal Blue (survey)
#0504AA
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F298D #8D831F
analogous
#1F608D #1F298D #4C1F8D
triadic
#1F298D #8D1F29 #298D1F
tetradic
#1F298D #8D1F60 #8D831F #1F8D4C
square
#1F298D #8D1F60 #8D831F #1F8D4C
split-complementary
#1F298D #8D4C1F #608D1F
monochromatic
#090C29 #141A5B #1F298D #2A38BF #4E5BD8
Accessibility & contrast
On white
11.93
#1F298D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#1F298D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F298D
11.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F298D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F298D | 1.00 | 11.93 | 1.76 | 11.93 |
| #FFFFFF | 11.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00328B
Tritanopia (blue-blind)
#004557
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f298d; /* rgb */ color: rgb(31, 41, 141); /* oklch */ color: oklch(35.0% 0.163 270.4);
Tailwind
colors: {
custom: {
50: '#6e63af',
500: '#1f298d',
950: '#000000',
},
}SCSS
$custom: #1f298d; $custom-light: #6e63af; $custom-dark: #000000;
JSON
{
"hex": "#1f298d",
"rgb": {
"r": 31,
"g": 41,
"b": 141
},
"hsl": {
"h": 234.545,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.3496,
"c": 0.1627,
"h": 270.4
},
"luminance": 0.038
}Semantic roles & 50–950 ramp
primary
#1F298D
secondary
#BBB14D
accent
#D841E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080511
muted
#7B7980