#172B75#172B75

#172B75 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.5% C 0.129 H 267.1°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#172B75
RGBrgb(23, 43, 117)
HSLhsl(227, 67%, 27%)
HSVhsv(227, 80%, 46%)
CMYKcmyk(80.3%, 63.2%, 0%, 54.1%)
CIE-LABlab(20.80, 21.26, -44.68)
CIE-LCHlch(20.80, 49.48, 295.45°)
OKLaboklab(32.54% -0.0066 -0.1291)
OKLCHoklch(32.54% 0.129 267.1)
XYZxyz(4.4270, 3.1938, 17.2093)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B75 #756117
analogous
#175A75 #172B75 #321775
triadic
#172B75 #75172B #2B7517
tetradic
#172B75 #75175A #756117 #177532
square
#172B75 #75175A #756117 #177532
split-complementary
#172B75 #753217 #5A7517
monochromatic
#05091A #0D1842 #172B75 #213EA8 #3053D6

Accessibility & contrast

On white

12.81
#172B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#172B75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B75
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B75#FFFFFF#000000##FFFFFF
##172B751.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003777
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172b75;
/* rgb */ color: rgb(23, 43, 117);
/* oklch */ color: oklch(32.5% 0.129 267.1);
Tailwind
colors: {
  custom: {
    50: '#65649d',
    500: '#172b75',
    950: '#000000',
  },
}
SCSS
$custom: #172b75;
$custom-light: #65649d;
$custom-dark: #000000;
JSON
{
  "hex": "#172b75",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 117
  },
  "hsl": {
    "h": 227.234,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32537,
    "c": 0.1293,
    "h": 267.1
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#172B75
secondary
#AA933D
accent
#C53EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172B75

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#172B75 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva