#172873#172873

#172873 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.7% C 0.130 H 268.0°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#172873
RGBrgb(23, 40, 115)
HSLhsl(229, 67%, 27%)
HSVhsv(229, 80%, 45%)
CMYKcmyk(80%, 65.2%, 0%, 54.9%)
CIE-LABlab(19.79, 22.58, -45.05)
CIE-LCHlch(19.79, 50.39, 296.62°)
OKLaboklab(31.73% -0.0045 -0.1303)
OKLCHoklch(31.73% 0.13 268)
XYZxyz(4.2056, 2.9371, 16.5616)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172873 #736217
analogous
#175673 #172873 #341773
triadic
#172873 #731728 #287317
tetradic
#172873 #731756 #736217 #177334
square
#172873 #731756 #736217 #177334
split-complementary
#172873 #733417 #567317
monochromatic
#05091A #0D1640 #172873 #213AA6 #2F4ED5

Accessibility & contrast

On white

13.23
#172873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172873
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172873#FFFFFF#000000##FFFFFF
##1728731.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172873;
/* rgb */ color: rgb(23, 40, 115);
/* oklch */ color: oklch(31.7% 0.130 268.0);
Tailwind
colors: {
  custom: {
    50: '#64619c',
    500: '#172873',
    950: '#000000',
  },
}
SCSS
$custom: #172873;
$custom-light: #64619c;
$custom-dark: #000000;
JSON
{
  "hex": "#172873",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 228.913,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31728,
    "c": 0.13035,
    "h": 268
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#172873
secondary
#A9953D
accent
#CA3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172873

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

Preview Lab → · Contrast checker → · Palette generator →

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