#172B8D#172B8D

#172B8D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.163 H 267.4°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#172B8D
RGBrgb(23, 43, 141)
HSLhsl(230, 72%, 32%)
HSVhsv(230, 84%, 55%)
CMYKcmyk(83.7%, 69.5%, 0%, 44.7%)
CIE-LABlab(23.11, 30.77, -56.04)
CIE-LCHlch(23.11, 63.93, 298.77°)
OKLaboklab(34.94% -0.0075 -0.1623)
OKLCHoklch(34.94% 0.163 267.4)
XYZxyz(6.0233, 3.8323, 25.6164)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B8D #8D7917
analogous
#17668D #172B8D #3E178D
triadic
#172B8D #8D172B #2B8D17
tetradic
#172B8D #8D1766 #8D7917 #178D3E
square
#172B8D #8D1766 #8D7917 #178D3E
split-complementary
#172B8D #8D3E17 #668D17
monochromatic
#060B24 #0E1B58 #172B8D #203BC2 #3F5AE0

Accessibility & contrast

On white

11.89
#172B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#172B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B8D
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B8D#FFFFFF#000000##FFFFFF
##172B8D1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172b8d;
/* rgb */ color: rgb(23, 43, 141);
/* oklch */ color: oklch(34.9% 0.163 267.4);
Tailwind
colors: {
  custom: {
    50: '#6b64af',
    500: '#172b8d',
    950: '#000000',
  },
}
SCSS
$custom: #172b8d;
$custom-light: #6b64af;
$custom-dark: #000000;
JSON
{
  "hex": "#172b8d",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 229.831,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34938,
    "c": 0.16252,
    "h": 267.4
  },
  "luminance": 0.03833
}

Semantic roles & 50–950 ramp

primary
#172B8D
secondary
#C0AA40
accent
#D039EF
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080511
muted
#7B7A80

Preview Lab

Preview with #172B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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