#172B6A#172B6A

#172B6A is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.5% C 0.113 H 266.5°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#172B6A
RGBrgb(23, 43, 106)
HSLhsl(226, 64%, 25%)
HSVhsv(226, 78%, 42%)
CMYKcmyk(78.3%, 59.4%, 0%, 58.4%)
CIE-LABlab(19.84, 16.74, -39.15)
CIE-LCHlch(19.84, 42.58, 293.15°)
OKLaboklab(31.52% -0.007 -0.1129)
OKLCHoklch(31.52% 0.113 266.5)
XYZxyz(3.8178, 2.9501, 14.0011)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B6A #6A5617
analogous
#17546A #172B6A #2C176A
triadic
#172B6A #6A172B #2B6A17
tetradic
#172B6A #6A1754 #6A5617 #176A2C
square
#172B6A #6A1754 #6A5617 #176A2C
split-complementary
#172B6A #6A2C17 #546A17
monochromatic
#050A19 #0C1738 #172B6A #223F9C #2D54CF

Accessibility & contrast

On white

13.21
#172B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B6A
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B6A#FFFFFF#000000##FFFFFF
##172B6A1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#003B46
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172b6a;
/* rgb */ color: rgb(23, 43, 106);
/* oklch */ color: oklch(31.5% 0.113 266.5);
Tailwind
colors: {
  custom: {
    50: '#626395',
    500: '#172b6a',
    950: '#000000',
  },
}
SCSS
$custom: #172b6a;
$custom-light: #626395;
$custom-dark: #000000;
JSON
{
  "hex": "#172b6a",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 106
  },
  "hsl": {
    "h": 225.542,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31519,
    "c": 0.1131,
    "h": 266.5
  },
  "luminance": 0.02951
}

Semantic roles & 50–950 ramp

primary
#172B6A
secondary
#A0883D
accent
#BF40E7
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #172B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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