#1F23A6#1F23A6
#1F23A6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 36.8% C 0.200 H 269.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).
Color values
| HEX | #1F23A6 |
|---|---|
| RGB | rgb(31, 35, 166) |
| HSL | hsl(238, 69%, 39%) |
| HSV | hsv(238, 81%, 65%) |
| CMYK | cmyk(81.3%, 78.9%, 0%, 34.9%) |
| CIE-LAB | lab(24.47, 45.12, -69.12) |
| CIE-LCH | lch(24.47, 82.54, 303.14°) |
| OKLab | oklab(36.82% -0.0003 -0.2002) |
| OKLCH | oklch(36.82% 0.2 269.9) |
| XYZ | xyz(8.0467, 4.2456, 36.4644) |
| Luminance | 0.0425 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.65
Royal
#0C1793
ΔE00 3.82
Cobalt Blue
#030AA7
ΔE00 4.14
Royal Blue (survey)
#0504AA
ΔE00 4.61
Ultramarine
#2000B1
ΔE00 4.73
True Blue
#010FCC
ΔE00 5.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#1F23A6 #A6A21F
analogous
#1F66A6 #1F23A6 #5E1FA6
triadic
#1F23A6 #A61F23 #23A61F
tetradic
#1F23A6 #A61F66 #A6A21F #1FA65E
square
#1F23A6 #A61F66 #A6A21F #1FA65E
split-complementary
#1F23A6 #A65E1F #66A61F
monochromatic
#0C0D3F #151872 #1F23A6 #2B30D7 #5E62E1
Accessibility & contrast
On white
11.36
#1F23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#1F23A6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #1F23A6
11.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##1F23A6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##1F23A6 | 1.00 | 11.36 | 1.85 | 11.36 |
| #FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0033A4
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #1f23a6; /* rgb */ color: rgb(31, 35, 166); /* oklch */ color: oklch(36.8% 0.200 269.9);
Tailwind
colors: {
custom: {
50: '#7560c2',
500: '#1f23a6',
950: '#000000',
},
}SCSS
$custom: #1f23a6; $custom-light: #7560c2; $custom-dark: #000000;
JSON
{
"hex": "#1f23a6",
"rgb": {
"r": 31,
"g": 35,
"b": 166
},
"hsl": {
"h": 238.222,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.36817,
"c": 0.20019,
"h": 269.9
},
"luminance": 0.04247
}Semantic roles & 50–950 ramp
primary
#1F23A6
secondary
#C5C25B
accent
#E63CEB
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982