#1F238D#1F238D
#1F238D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.169 H 271.4°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).
Color values
| HEX | #1F238D |
|---|---|
| RGB | rgb(31, 35, 141) |
| HSL | hsl(238, 64%, 34%) |
| HSV | hsv(238, 78%, 55%) |
| CMYK | cmyk(78%, 75.2%, 0%, 44.7%) |
| CIE-LAB | lab(21.64, 36.55, -58.45) |
| CIE-LCH | lch(21.64, 68.93, 302.02°) |
| OKLab | oklab(33.98% 0.0042 -0.1692) |
| OKLCH | oklch(33.98% 0.169 271.4) |
| XYZ | xyz(5.9722, 3.4158, 25.5387) |
| Luminance | 0.0342 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.97
Midnight Blue
#191970
ΔE00 4.82
Cobalt Blue
#030AA7
ΔE00 5.57
Royal Blue (survey)
#0504AA
ΔE00 6.18
Darkblue
#00008B
ΔE00 6.38
Indigo Blue
#3A18B1
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F238D #8D891F
analogous
#1F5A8D #1F238D #521F8D
triadic
#1F238D #8D1F23 #238D1F
tetradic
#1F238D #8D1F5A #8D891F #1F8D52
square
#1F238D #8D1F5A #8D891F #1F8D52
split-complementary
#1F238D #8D521F #5A8D1F
monochromatic
#090A29 #14175B #1F238D #2A2FBF #4E53D8
Accessibility & contrast
On white
12.48
#1F238D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#1F238D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F238D
12.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F238D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F238D | 1.00 | 12.48 | 1.68 | 12.48 |
| #FFFFFF | 12.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#002E8B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #1f238d; /* rgb */ color: rgb(31, 35, 141); /* oklch */ color: oklch(34.0% 0.169 271.4);
Tailwind
colors: {
custom: {
50: '#6f5faf',
500: '#1f238d',
950: '#000000',
},
}SCSS
$custom: #1f238d; $custom-light: #6f5faf; $custom-dark: #000000;
JSON
{
"hex": "#1f238d",
"rgb": {
"r": 31,
"g": 35,
"b": 141
},
"hsl": {
"h": 237.818,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.33984,
"c": 0.16926,
"h": 271.4
},
"luminance": 0.03416
}Semantic roles & 50–950 ramp
primary
#1F238D
secondary
#BBB74D
accent
#E141E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980