#172B7D#172B7D

#172B7D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.141 H 267.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#172B7D
RGBrgb(23, 43, 125)
HSLhsl(228, 69%, 29%)
HSVhsv(228, 82%, 49%)
CMYKcmyk(81.6%, 65.6%, 0%, 51%)
CIE-LABlab(21.54, 24.49, -48.57)
CIE-LCHlch(21.54, 54.39, 296.76°)
OKLaboklab(33.31% -0.0067 -0.1405)
OKLCHoklch(33.31% 0.141 267.3)
XYZxyz(4.9176, 3.3900, 19.7932)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B7D #7D6917
analogous
#175E7D #172B7D #36177D
triadic
#172B7D #7D172B #2B7D17
tetradic
#172B7D #7D175E #7D6917 #177D36
square
#172B7D #7D175E #7D6917 #177D36
split-complementary
#172B7D #7D3617 #5E7D17
monochromatic
#05091A #0D1949 #172B7D #213DB1 #3555DA

Accessibility & contrast

On white

12.51
#172B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#172B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B7D
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B7D#FFFFFF#000000##FFFFFF
##172B7D1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172b7d;
/* rgb */ color: rgb(23, 43, 125);
/* oklch */ color: oklch(33.3% 0.141 267.3);
Tailwind
colors: {
  custom: {
    50: '#6764a3',
    500: '#172b7d',
    950: '#000000',
  },
}
SCSS
$custom: #172b7d;
$custom-light: #6764a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172b7d",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 228.235,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33312,
    "c": 0.14068,
    "h": 267.3
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#172B7D
secondary
#B29B3E
accent
#C93CEC
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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