#172B8E#172B8E

#172B8E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.0% C 0.164 H 267.4°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#172B8E
RGBrgb(23, 43, 142)
HSLhsl(230, 72%, 32%)
HSVhsv(230, 84%, 56%)
CMYKcmyk(83.8%, 69.7%, 0%, 44.3%)
CIE-LABlab(23.21, 31.15, -56.49)
CIE-LCHlch(23.21, 64.51, 298.88°)
OKLaboklab(35.04% -0.0075 -0.1637)
OKLCHoklch(35.04% 0.164 267.4)
XYZxyz(6.0980, 3.8622, 26.0100)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B8E #8E7A17
analogous
#17678E #172B8E #3F178E
triadic
#172B8E #8E172B #2B8E17
tetradic
#172B8E #8E1767 #8E7A17 #178E3F
square
#172B8E #8E1767 #8E7A17 #178E3F
split-complementary
#172B8E #8E3F17 #678E17
monochromatic
#060B25 #0E1B59 #172B8E #203BC3 #3F5AE0

Accessibility & contrast

On white

11.85
#172B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172B8E
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B8E#FFFFFF#000000##FFFFFF
##172B8E1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172b8e;
/* rgb */ color: rgb(23, 43, 142);
/* oklch */ color: oklch(35.0% 0.164 267.4);
Tailwind
colors: {
  custom: {
    50: '#6c64b0',
    500: '#172b8e',
    950: '#000000',
  },
}
SCSS
$custom: #172b8e;
$custom-light: #6c64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#172b8e",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 229.916,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35043,
    "c": 0.16385,
    "h": 267.4
  },
  "luminance": 0.03863
}

Semantic roles & 50–950 ramp

primary
#172B8E
secondary
#C0AB40
accent
#D039EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #172B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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