#172372#172372

#172372 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.135 H 269.5°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#172372
RGBrgb(23, 35, 114)
HSLhsl(232, 66%, 27%)
HSVhsv(232, 80%, 45%)
CMYKcmyk(79.8%, 69.3%, 0%, 55.3%)
CIE-LABlab(18.36, 25.68, -46.75)
CIE-LCHlch(18.36, 53.34, 298.78°)
OKLaboklab(30.65% -0.0012 -0.1353)
OKLCHoklch(30.65% 0.135 269.5)
XYZxyz(3.9906, 2.5987, 16.2076)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172372 #726617
analogous
#175172 #172372 #391772
triadic
#172372 #721723 #237217
tetradic
#172372 #721751 #726617 #177239
square
#172372 #721751 #726617 #177239
split-complementary
#172372 #723917 #517217
monochromatic
#050819 #0D133F #172372 #2133A5 #2E44D5

Accessibility & contrast

On white

13.82
#172372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172372
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172372#FFFFFF#000000##FFFFFF
##1723721.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172372;
/* rgb */ color: rgb(23, 35, 114);
/* oklch */ color: oklch(30.6% 0.135 269.5);
Tailwind
colors: {
  custom: {
    50: '#655e9b',
    500: '#172372',
    950: '#000000',
  },
}
SCSS
$custom: #172372;
$custom-light: #655e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172372",
  "rgb": {
    "r": 23,
    "g": 35,
    "b": 114
  },
  "hsl": {
    "h": 232.088,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30647,
    "c": 0.1353,
    "h": 269.5
  },
  "luminance": 0.02599
}

Semantic roles & 50–950 ramp

primary
#172372
secondary
#A89A3D
accent
#D33EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172372

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

Preview Lab → · Contrast checker → · Palette generator →

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