#1F238F#1F238F
#1F238F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.172 H 271.3°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).
Color values
| HEX | #1F238F |
|---|---|
| RGB | rgb(31, 35, 143) |
| HSL | hsl(238, 64%, 34%) |
| HSV | hsv(238, 78%, 56%) |
| CMYK | cmyk(78.3%, 75.5%, 0%, 43.9%) |
| CIE-LAB | lab(21.86, 37.25, -59.33) |
| CIE-LCH | lch(21.86, 70.06, 302.12°) |
| OKLab | oklab(34.21% 0.0038 -0.1718) |
| OKLCH | oklch(34.21% 0.172 271.3) |
| XYZ | xyz(6.1224, 3.4759, 26.3295) |
| Luminance | 0.0348 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.87
Midnight Blue
#191970
ΔE00 5.09
Cobalt Blue
#030AA7
ΔE00 5.37
Royal Blue (survey)
#0504AA
ΔE00 5.97
Indigo Blue
#3A18B1
ΔE00 6.15
Darkblue
#00008B
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F238F #8F8B1F
analogous
#1F5B8F #1F238F #531F8F
triadic
#1F238F #8F1F23 #238F1F
tetradic
#1F238F #8F1F5B #8F8B1F #1F8F53
square
#1F238F #8F1F5B #8F8B1F #1F8F53
split-complementary
#1F238F #8F531F #5B8F1F
monochromatic
#090A2A #14175D #1F238F #2A2FC1 #4F54D9
Accessibility & contrast
On white
12.39
#1F238F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#1F238F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F238F
12.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F238F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F238F | 1.00 | 12.39 | 1.70 | 12.39 |
| #FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f238f; /* rgb */ color: rgb(31, 35, 143); /* oklch */ color: oklch(34.2% 0.172 271.3);
Tailwind
colors: {
custom: {
50: '#6f5fb1',
500: '#1f238f',
950: '#000000',
},
}SCSS
$custom: #1f238f; $custom-light: #6f5fb1; $custom-dark: #000000;
JSON
{
"hex": "#1f238f",
"rgb": {
"r": 31,
"g": 35,
"b": 143
},
"hsl": {
"h": 237.857,
"s": 64.368,
"l": 34.118
},
"oklch": {
"l": 0.34205,
"c": 0.17182,
"h": 271.3
},
"luminance": 0.03477
}Semantic roles & 50–950 ramp
primary
#1F238F
secondary
#BCB84E
accent
#E140E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980