#172B8F#172B8F
#172B8F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.165 H 267.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).
Color values
| HEX | #172B8F |
|---|---|
| RGB | rgb(23, 43, 143) |
| HSL | hsl(230, 72%, 33%) |
| HSV | hsv(230, 84%, 56%) |
| CMYK | cmyk(83.9%, 69.9%, 0%, 43.9%) |
| CIE-LAB | lab(23.31, 31.54, -56.94) |
| CIE-LCH | lch(23.31, 65.09, 298.98°) |
| OKLab | oklab(35.15% -0.0076 -0.165) |
| OKLCH | oklch(35.15% 0.165 267.4) |
| XYZ | xyz(6.1734, 3.8923, 26.4072) |
| Luminance | 0.0389 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 5.11
Royal
#0C1793
ΔE00 5.12
Midnight Blue
#191970
ΔE00 6.30
Cobalt Blue
#030AA7
ΔE00 7.43
Blueberry
#464196
ΔE00 7.75
Darkslateblue
#483D8B
ΔE00 7.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172B8F #8F7B17
analogous
#17678F #172B8F #3F178F
triadic
#172B8F #8F172B #2B8F17
tetradic
#172B8F #8F1767 #8F7B17 #178F3F
square
#172B8F #8F1767 #8F7B17 #178F3F
split-complementary
#172B8F #8F3F17 #678F17
monochromatic
#060B26 #0F1B5A #172B8F #1F3BC4 #405BE0
Accessibility & contrast
On white
11.81
#172B8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#172B8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172B8F
11.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172B8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172B8F | 1.00 | 11.81 | 1.78 | 11.81 |
| #FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #172b8f; /* rgb */ color: rgb(23, 43, 143); /* oklch */ color: oklch(35.1% 0.165 267.4);
Tailwind
colors: {
custom: {
50: '#6c64b1',
500: '#172b8f',
950: '#000000',
},
}SCSS
$custom: #172b8f; $custom-light: #6c64b1; $custom-dark: #000000;
JSON
{
"hex": "#172b8f",
"rgb": {
"r": 23,
"g": 43,
"b": 143
},
"hsl": {
"h": 230,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.35148,
"c": 0.16518,
"h": 267.4
},
"luminance": 0.03893
}Semantic roles & 50–950 ramp
primary
#172B8F
secondary
#C1AB41
accent
#D139EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80