#1F298C#1F298C
#1F298C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.161 H 270.5°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).
Color values
| HEX | #1F298C |
|---|---|
| RGB | rgb(31, 41, 140) |
| HSL | hsl(234, 64%, 34%) |
| HSV | hsv(234, 78%, 55%) |
| CMYK | cmyk(77.9%, 70.7%, 0%, 45.1%) |
| CIE-LAB | lab(22.90, 32.42, -55.75) |
| CIE-LCH | lch(22.90, 64.49, 300.18°) |
| OKLab | oklab(34.86% 0.0013 -0.1614) |
| OKLCH | oklch(34.86% 0.161 270.5) |
| XYZ | xyz(6.0900, 3.7700, 25.2126) |
| Luminance | 0.0377 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 4.59
Midnight Blue
#191970
ΔE00 5.54
Sapphire (survey)
#2138AB
ΔE00 5.74
Cobalt Blue
#030AA7
ΔE00 7.05
Indigo Blue
#3A18B1
ΔE00 7.40
Darkslateblue
#483D8B
ΔE00 7.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F298C #8C821F
analogous
#1F5F8C #1F298C #4B1F8C
triadic
#1F298C #8C1F29 #298C1F
tetradic
#1F298C #8C1F5F #8C821F #1F8C4B
square
#1F298C #8C1F5F #8C821F #1F8C4B
split-complementary
#1F298C #8C4B1F #5F8C1F
monochromatic
#090C28 #141A5A #1F298C #2A38BE #4E5AD8
Accessibility & contrast
On white
11.97
#1F298C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#1F298C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F298C
11.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F298C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F298C | 1.00 | 11.97 | 1.75 | 11.97 |
| #FFFFFF | 11.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #1f298c; /* rgb */ color: rgb(31, 41, 140); /* oklch */ color: oklch(34.9% 0.161 270.5);
Tailwind
colors: {
custom: {
50: '#6e63af',
500: '#1f298c',
950: '#000000',
},
}SCSS
$custom: #1f298c; $custom-light: #6e63af; $custom-dark: #000000;
JSON
{
"hex": "#1f298c",
"rgb": {
"r": 31,
"g": 41,
"b": 140
},
"hsl": {
"h": 234.495,
"s": 63.743,
"l": 33.529
},
"oklch": {
"l": 0.34856,
"c": 0.16138,
"h": 270.5
},
"luminance": 0.03771
}Semantic roles & 50–950 ramp
primary
#1F298C
secondary
#BBB04C
accent
#D841E7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#080510
muted
#7B797F