#172B6B#172B6B

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

Color values

HEX#172B6B
RGBrgb(23, 43, 107)
HSLhsl(226, 65%, 25%)
HSVhsv(226, 79%, 42%)
CMYKcmyk(78.5%, 59.8%, 0%, 58%)
CIE-LABlab(19.93, 17.15, -39.66)
CIE-LCHlch(19.93, 43.21, 293.39°)
OKLaboklab(31.61% -0.0069 -0.1144)
OKLCHoklch(31.61% 0.115 266.5)
XYZxyz(3.8701, 2.9710, 14.2766)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B6B #6B5717
analogous
#17556B #172B6B #2D176B
triadic
#172B6B #6B172B #2B6B17
tetradic
#172B6B #6B1755 #6B5717 #176B2D
square
#172B6B #6B1755 #6B5717 #176B2D
split-complementary
#172B6B #6B2D17 #556B17
monochromatic
#050A19 #0C1739 #172B6B #223F9D #2D53D0

Accessibility & contrast

On white

13.17
#172B6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172B6B
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B6B#FFFFFF#000000##FFFFFF
##172B6B1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172b6b;
/* rgb */ color: rgb(23, 43, 107);
/* oklch */ color: oklch(31.6% 0.115 266.5);
Tailwind
colors: {
  custom: {
    50: '#626396',
    500: '#172b6b',
    950: '#000000',
  },
}
SCSS
$custom: #172b6b;
$custom-light: #626396;
$custom-dark: #000000;
JSON
{
  "hex": "#172b6b",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 107
  },
  "hsl": {
    "h": 225.714,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31609,
    "c": 0.11461,
    "h": 266.5
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#172B6B
secondary
#A1893D
accent
#C040E8
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #172B6B

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

Preview Lab → · Contrast checker → · Palette generator →

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