#172B4C#172B4C

#172B4C is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.066 H 259.9°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#172B4C
RGBrgb(23, 43, 76)
HSLhsl(217, 54%, 19%)
HSVhsv(217, 70%, 30%)
CMYKcmyk(69.7%, 43.4%, 0%, 70.2%)
CIE-LABlab(17.61, 4.27, -22.83)
CIE-LCHlch(17.61, 23.23, 280.58°)
OKLaboklab(29.1% -0.0116 -0.0649)
OKLCHoklch(29.1% 0.066 259.9)
XYZxyz(2.5213, 2.4315, 7.1725)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B4C #4C3817
analogous
#17464C #172B4C #1E174C
triadic
#172B4C #4C172B #2B4C17
tetradic
#172B4C #4C1746 #4C3817 #174C1E
square
#172B4C #4C1746 #4C3817 #174C1E
split-complementary
#172B4C #4C1E17 #464C17
monochromatic
#070D17 #09101D #172B4C #25467B #3360AA

Accessibility & contrast

On white

14.13
#172B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#172B4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B4C
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B4C#FFFFFF#000000##FFFFFF
##172B4C1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2E4D
Deuteranopia (green-blind)
#15294B
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172b4c;
/* rgb */ color: rgb(23, 43, 76);
/* oklch */ color: oklch(29.1% 0.066 259.9);
Tailwind
colors: {
  custom: {
    50: '#5a637e',
    500: '#172b4c',
    950: '#000000',
  },
}
SCSS
$custom: #172b4c;
$custom-light: #5a637e;
$custom-dark: #000000;
JSON
{
  "hex": "#172b4c",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 76
  },
  "hsl": {
    "h": 217.358,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29097,
    "c": 0.06594,
    "h": 259.9
  },
  "luminance": 0.02432
}

Semantic roles & 50–950 ramp

primary
#172B4C
secondary
#83683C
accent
#A64BDD
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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