#172C7A#172C7A

#172C7A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.2% C 0.135 H 266.9°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#172C7A
RGBrgb(23, 44, 122)
HSLhsl(227, 68%, 28%)
HSVhsv(227, 81%, 48%)
CMYKcmyk(81.1%, 63.9%, 0%, 52.2%)
CIE-LABlab(21.54, 22.58, -46.67)
CIE-LCHlch(21.54, 51.85, 295.82°)
OKLaboklab(33.22% -0.0073 -0.135)
OKLCHoklch(33.22% 0.135 266.9)
XYZxyz(4.7657, 3.3881, 18.8114)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C7A #7A6517
analogous
#175D7A #172C7A #33177A
triadic
#172C7A #7A172C #2C7A17
tetradic
#172C7A #7A175D #7A6517 #177A33
square
#172C7A #7A175D #7A6517 #177A33
split-complementary
#172C7A #7A3317 #5D7A17
monochromatic
#05091A #0D1947 #172C7A #213FAD #3356D9

Accessibility & contrast

On white

12.52
#172C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#172C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C7A
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C7A#FFFFFF#000000##FFFFFF
##172C7A1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#00404E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172c7a;
/* rgb */ color: rgb(23, 44, 122);
/* oklch */ color: oklch(33.2% 0.135 266.9);
Tailwind
colors: {
  custom: {
    50: '#6664a1',
    500: '#172c7a',
    950: '#000000',
  },
}
SCSS
$custom: #172c7a;
$custom-light: #6664a1;
$custom-dark: #000000;
JSON
{
  "hex": "#172c7a",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 122
  },
  "hsl": {
    "h": 227.273,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33221,
    "c": 0.13517,
    "h": 266.9
  },
  "luminance": 0.03389
}

Semantic roles & 50–950 ramp

primary
#172C7A
secondary
#AF973E
accent
#C63DEB
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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