#172173#172173

#172173 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.139 H 269.9°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#172173
RGBrgb(23, 33, 115)
HSLhsl(233, 67%, 27%)
HSVhsv(233, 80%, 45%)
CMYKcmyk(80%, 71.3%, 0%, 54.9%)
CIE-LABlab(17.95, 27.44, -48.07)
CIE-LCHlch(17.95, 55.35, 299.72°)
OKLaboklab(30.38% -0.0002 -0.1391)
OKLCHoklch(30.38% 0.139 269.9)
XYZxyz(3.9907, 2.5072, 16.4900)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172173 #736917
analogous
#174F73 #172173 #3B1773
triadic
#172173 #731721 #217317
tetradic
#172173 #73174F #736917 #17733B
square
#172173 #73174F #736917 #17733B
split-complementary
#172173 #733B17 #4F7317
monochromatic
#05071A #0D1240 #172173 #2130A6 #2F41D5

Accessibility & contrast

On white

13.99
#172173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##172173#FFFFFF#000000##FFFFFF
##1721731.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)
#003076
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172173;
/* rgb */ color: rgb(23, 33, 115);
/* oklch */ color: oklch(30.4% 0.139 269.9);
Tailwind
colors: {
  custom: {
    50: '#655c9c',
    500: '#172173',
    950: '#000000',
  },
}
SCSS
$custom: #172173;
$custom-light: #655c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#172173",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 233.478,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30381,
    "c": 0.13914,
    "h": 269.9
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#172173
secondary
#A99D3D
accent
#D73EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #172173

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

Preview Lab → · Contrast checker → · Palette generator →

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