#1F239E#1F239E
#1F239E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.191 H 270.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).
Color values
| HEX | #1F239E |
|---|---|
| RGB | rgb(31, 35, 158) |
| HSL | hsl(238, 67%, 37%) |
| HSV | hsv(238, 80%, 62%) |
| CMYK | cmyk(80.4%, 77.8%, 0%, 38%) |
| CIE-LAB | lab(23.54, 42.44, -65.78) |
| CIE-LCH | lch(23.54, 78.28, 302.83°) |
| OKLab | oklab(35.9% 0.0012 -0.1905) |
| OKLCH | oklch(35.9% 0.191 270.4) |
| XYZ | xyz(7.3356, 3.9612, 32.7191) |
| Luminance | 0.0396 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.13
Cobalt Blue
#030AA7
ΔE00 4.28
Indigo Blue
#3A18B1
ΔE00 4.38
Royal Blue (survey)
#0504AA
ΔE00 4.83
Ultramarine
#2000B1
ΔE00 5.20
Sapphire (survey)
#2138AB
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F239E #9E9A1F
analogous
#1F639E #1F239E #5A1F9E
triadic
#1F239E #9E1F23 #239E1F
tetradic
#1F239E #9E1F63 #9E9A1F #1F9E5A
square
#1F239E #9E1F63 #9E9A1F #1F9E5A
split-complementary
#1F239E #9E5A1F #639E1F
monochromatic
#0B0C38 #15186B #1F239E #292ED1 #595DDE
Accessibility & contrast
On white
11.72
#1F239E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#1F239E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F239E
11.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F239E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F239E | 1.00 | 11.72 | 1.79 | 11.72 |
| #FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA1
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #1f239e; /* rgb */ color: rgb(31, 35, 158); /* oklch */ color: oklch(35.9% 0.191 270.4);
Tailwind
colors: {
custom: {
50: '#7360bc',
500: '#1f239e',
950: '#000000',
},
}SCSS
$custom: #1f239e; $custom-light: #7360bc; $custom-dark: #000000;
JSON
{
"hex": "#1f239e",
"rgb": {
"r": 31,
"g": 35,
"b": 158
},
"hsl": {
"h": 238.11,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.35896,
"c": 0.19052,
"h": 270.4
},
"luminance": 0.03962
}Semantic roles & 50–950 ramp
primary
#1F239E
secondary
#C2BF56
accent
#E53EEA
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981