#172C4C#172C4C

#172C4C is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.4% C 0.065 H 258.6°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#172C4C
RGBrgb(23, 44, 76)
HSLhsl(216, 54%, 19%)
HSVhsv(216, 70%, 30%)
CMYKcmyk(69.7%, 42.1%, 0%, 70.2%)
CIE-LABlab(17.94, 3.54, -22.30)
CIE-LCHlch(17.94, 22.58, 279.02°)
OKLaboklab(29.36% -0.0128 -0.0633)
OKLCHoklch(29.36% 0.065 258.6)
XYZxyz(2.5581, 2.5051, 7.1848)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C4C #4C3717
analogous
#17474C #172C4C #1D174C
triadic
#172C4C #4C172C #2C4C17
tetradic
#172C4C #4C1747 #4C3717 #174C1D
square
#172C4C #4C1747 #4C3717 #174C1D
split-complementary
#172C4C #4C1D17 #474C17
monochromatic
#070E17 #09111D #172C4C #25477B #3362AA

Accessibility & contrast

On white

13.99
#172C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C4C
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C4C#FFFFFF#000000##FFFFFF
##172C4C1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2F4D
Deuteranopia (green-blind)
#172A4B
Tritanopia (blue-blind)
#003338
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172c4c;
/* rgb */ color: rgb(23, 44, 76);
/* oklch */ color: oklch(29.4% 0.065 258.6);
Tailwind
colors: {
  custom: {
    50: '#5a647e',
    500: '#172c4c',
    950: '#000000',
  },
}
SCSS
$custom: #172c4c;
$custom-light: #5a647e;
$custom-dark: #000000;
JSON
{
  "hex": "#172c4c",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 76
  },
  "hsl": {
    "h": 216.226,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29357,
    "c": 0.06463,
    "h": 258.6
  },
  "luminance": 0.02505
}

Semantic roles & 50–950 ramp

primary
#172C4C
secondary
#83673C
accent
#A34BDD
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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