#172C73#172C73

#172C73 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.125 H 266.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#172C73
RGBrgb(23, 44, 115)
HSLhsl(226, 67%, 27%)
HSVhsv(226, 80%, 45%)
CMYKcmyk(80%, 61.7%, 0%, 54.9%)
CIE-LABlab(20.91, 19.73, -43.23)
CIE-LCHlch(20.91, 47.52, 294.53°)
OKLaboklab(32.56% -0.0074 -0.1249)
OKLCHoklch(32.56% 0.125 266.6)
XYZxyz(4.3475, 3.2208, 16.6089)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C73 #735E17
analogous
#175A73 #172C73 #301773
triadic
#172C73 #73172C #2C7317
tetradic
#172C73 #73175A #735E17 #177330
square
#172C73 #73175A #735E17 #177330
split-complementary
#172C73 #733017 #5A7317
monochromatic
#050A1A #0D1840 #172C73 #2140A6 #2F55D5

Accessibility & contrast

On white

12.77
#172C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#172C73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C73
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C73#FFFFFF#000000##FFFFFF
##172C731.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172c73;
/* rgb */ color: rgb(23, 44, 115);
/* oklch */ color: oklch(32.6% 0.125 266.6);
Tailwind
colors: {
  custom: {
    50: '#64649c',
    500: '#172c73',
    950: '#000000',
  },
}
SCSS
$custom: #172c73;
$custom-light: #64649c;
$custom-dark: #000000;
JSON
{
  "hex": "#172c73",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 115
  },
  "hsl": {
    "h": 226.304,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32559,
    "c": 0.12508,
    "h": 266.6
  },
  "luminance": 0.03221
}

Semantic roles & 50–950 ramp

primary
#172C73
secondary
#A9903D
accent
#C23EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172C73

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

Preview Lab → · Contrast checker → · Palette generator →

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