#172872#172872

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

Color values

HEX#172872
RGBrgb(23, 40, 114)
HSLhsl(229, 66%, 27%)
HSVhsv(229, 80%, 45%)
CMYKcmyk(79.8%, 64.9%, 0%, 55.3%)
CIE-LABlab(19.70, 22.17, -44.56)
CIE-LCHlch(19.70, 49.77, 296.46°)
OKLaboklab(31.63% -0.0045 -0.1288)
OKLCHoklch(31.63% 0.129 268)
XYZxyz(4.1483, 2.9142, 16.2602)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172872 #726117
analogous
#175672 #172872 #341772
triadic
#172872 #721728 #287217
tetradic
#172872 #721756 #726117 #177234
square
#172872 #721756 #726117 #177234
split-complementary
#172872 #723417 #567217
monochromatic
#050919 #0D163F #172872 #213AA5 #2E4ED5

Accessibility & contrast

On white

13.27
#172872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172872
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172872#FFFFFF#000000##FFFFFF
##1728721.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172872;
/* rgb */ color: rgb(23, 40, 114);
/* oklch */ color: oklch(31.6% 0.129 268.0);
Tailwind
colors: {
  custom: {
    50: '#64619b',
    500: '#172872',
    950: '#000000',
  },
}
SCSS
$custom: #172872;
$custom-light: #64619b;
$custom-dark: #000000;
JSON
{
  "hex": "#172872",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 228.791,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31631,
    "c": 0.12891,
    "h": 268
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#172872
secondary
#A8943D
accent
#C93EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172872

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

Preview Lab → · Contrast checker → · Palette generator →

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