#172C74#172C74

#172C74 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.127 H 266.7°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#172C74
RGBrgb(23, 44, 116)
HSLhsl(226, 67%, 27%)
HSVhsv(226, 80%, 45%)
CMYKcmyk(80.2%, 62.1%, 0%, 54.5%)
CIE-LABlab(21.00, 20.14, -43.73)
CIE-LCHlch(21.00, 48.14, 294.73°)
OKLaboklab(32.65% -0.0073 -0.1263)
OKLCHoklch(32.65% 0.127 266.7)
XYZxyz(4.4053, 3.2440, 16.9136)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C74 #745F17
analogous
#175A74 #172C74 #311774
triadic
#172C74 #74172C #2C7417
tetradic
#172C74 #74175A #745F17 #177431
square
#172C74 #74175A #745F17 #177431
split-complementary
#172C74 #743117 #5A7417
monochromatic
#050A1A #0D1941 #172C74 #213FA7 #3055D6

Accessibility & contrast

On white

12.74
#172C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#172C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C74
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C74#FFFFFF#000000##FFFFFF
##172C741.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172c74;
/* rgb */ color: rgb(23, 44, 116);
/* oklch */ color: oklch(32.7% 0.127 266.7);
Tailwind
colors: {
  custom: {
    50: '#64649d',
    500: '#172c74',
    950: '#000000',
  },
}
SCSS
$custom: #172c74;
$custom-light: #64649d;
$custom-dark: #000000;
JSON
{
  "hex": "#172c74",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 116
  },
  "hsl": {
    "h": 226.452,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32652,
    "c": 0.12653,
    "h": 266.7
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#172C74
secondary
#A9913D
accent
#C33EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172C74

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

Preview Lab → · Contrast checker → · Palette generator →

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