#172973#172973

#172973 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.129 H 267.7°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#172973
RGBrgb(23, 41, 115)
HSLhsl(228, 67%, 27%)
HSVhsv(228, 80%, 45%)
CMYKcmyk(80%, 64.3%, 0%, 54.9%)
CIE-LABlab(20.07, 21.87, -44.60)
CIE-LCHlch(20.07, 49.68, 296.12°)
OKLaboklab(31.93% -0.0052 -0.1289)
OKLCHoklch(31.93% 0.129 267.7)
XYZxyz(4.2397, 3.0054, 16.5730)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172973 #736117
analogous
#175773 #172973 #331773
triadic
#172973 #731729 #297317
tetradic
#172973 #731757 #736117 #177333
square
#172973 #731757 #736117 #177333
split-complementary
#172973 #733317 #577317
monochromatic
#05091A #0D1740 #172973 #213BA6 #2F50D5

Accessibility & contrast

On white

13.12
#172973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172973
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172973#FFFFFF#000000##FFFFFF
##1729731.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172973;
/* rgb */ color: rgb(23, 41, 115);
/* oklch */ color: oklch(31.9% 0.129 267.7);
Tailwind
colors: {
  custom: {
    50: '#64629c',
    500: '#172973',
    950: '#000000',
  },
}
SCSS
$custom: #172973;
$custom-light: #64629c;
$custom-dark: #000000;
JSON
{
  "hex": "#172973",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 115
  },
  "hsl": {
    "h": 228.261,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31932,
    "c": 0.12904,
    "h": 267.7
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#172973
secondary
#A9943D
accent
#C83EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172973

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

Preview Lab → · Contrast checker → · Palette generator →

#172973 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva