#172B7F#172B7F
#172B7F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.143 H 267.3°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).
Color values
| HEX | #172B7F |
|---|---|
| RGB | rgb(23, 43, 127) |
| HSL | hsl(228, 69%, 29%) |
| HSV | hsv(228, 82%, 50%) |
| CMYK | cmyk(81.9%, 66.1%, 0%, 50.2%) |
| CIE-LAB | lab(21.73, 25.29, -49.52) |
| CIE-LCH | lch(21.73, 55.61, 297.05°) |
| OKLab | oklab(33.51% -0.0067 -0.1433) |
| OKLCH | oklch(33.51% 0.143 267.3) |
| XYZ | xyz(5.0467, 3.4416, 20.4729) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.49
Royal
#0C1793
ΔE00 6.58
Marine
#042E60
ΔE00 6.68
Sapphire (survey)
#2138AB
ΔE00 7.03
Darkslateblue
#483D8B
ΔE00 7.97
Marine Blue
#01386A
ΔE00 7.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172B7F #7F6B17
analogous
#175F7F #172B7F #37177F
triadic
#172B7F #7F172B #2B7F17
tetradic
#172B7F #7F175F #7F6B17 #177F37
square
#172B7F #7F175F #7F6B17 #177F37
split-complementary
#172B7F #7F3717 #5F7F17
monochromatic
#05091A #0E194B #172B7F #203DB3 #3656DB
Accessibility & contrast
On white
12.44
#172B7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#172B7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172B7F
12.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172B7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172B7F | 1.00 | 12.44 | 1.69 | 12.44 |
| #FFFFFF | 12.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #172b7f; /* rgb */ color: rgb(23, 43, 127); /* oklch */ color: oklch(33.5% 0.143 267.3);
Tailwind
colors: {
custom: {
50: '#6864a5',
500: '#172b7f',
950: '#000000',
},
}SCSS
$custom: #172b7f; $custom-light: #6864a5; $custom-dark: #000000;
JSON
{
"hex": "#172b7f",
"rgb": {
"r": 23,
"g": 43,
"b": 127
},
"hsl": {
"h": 228.462,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.3351,
"c": 0.14348,
"h": 267.3
},
"luminance": 0.03442
}Semantic roles & 50–950 ramp
primary
#172B7F
secondary
#B49D3E
accent
#CA3CEC
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F