#172A7B#172A7B
#172A7B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.139 H 267.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).
Color values
| HEX | #172A7B |
|---|---|
| RGB | rgb(23, 42, 123) |
| HSL | hsl(229, 68%, 29%) |
| HSV | hsv(229, 81%, 48%) |
| CMYK | cmyk(81.3%, 65.9%, 0%, 51.8%) |
| CIE-LAB | lab(21.09, 24.39, -48.05) |
| CIE-LCH | lch(21.09, 53.88, 296.91°) |
| OKLab | oklab(32.92% -0.006 -0.139) |
| OKLCH | oklch(32.92% 0.139 267.5) |
| XYZ | xyz(4.7552, 3.2676, 19.1151) |
| Luminance | 0.0327 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.17
Marine
#042E60
ΔE00 6.36
Royal
#0C1793
ΔE00 6.81
Sapphire (survey)
#2138AB
ΔE00 7.67
Marine Blue
#01386A
ΔE00 7.95
Darkslateblue
#483D8B
ΔE00 8.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172A7B #7B6817
analogous
#175C7B #172A7B #36177B
triadic
#172A7B #7B172A #2A7B17
tetradic
#172A7B #7B175C #7B6817 #177B36
square
#172A7B #7B175C #7B6817 #177B36
split-complementary
#172A7B #7B3617 #5C7B17
monochromatic
#05091A #0D1847 #172A7B #213CAF #3353D9
Accessibility & contrast
On white
12.70
#172A7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#172A7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172A7B
12.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172A7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172A7B | 1.00 | 12.70 | 1.65 | 12.70 |
| #FFFFFF | 12.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #172a7b; /* rgb */ color: rgb(23, 42, 123); /* oklch */ color: oklch(32.9% 0.139 267.5);
Tailwind
colors: {
custom: {
50: '#6663a2',
500: '#172a7b',
950: '#000000',
},
}SCSS
$custom: #172a7b; $custom-light: #6663a2; $custom-dark: #000000;
JSON
{
"hex": "#172a7b",
"rgb": {
"r": 23,
"g": 42,
"b": 123
},
"hsl": {
"h": 228.6,
"s": 68.493,
"l": 28.627
},
"oklch": {
"l": 0.32917,
"c": 0.13914,
"h": 267.5
},
"luminance": 0.03268
}Semantic roles & 50–950 ramp
primary
#172A7B
secondary
#B09A3E
accent
#CA3CEB
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F