#172371#172371

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

Color values

HEX#172371
RGBrgb(23, 35, 113)
HSLhsl(232, 66%, 27%)
HSVhsv(232, 80%, 44%)
CMYKcmyk(79.6%, 69%, 0%, 55.7%)
CIE-LABlab(18.26, 25.29, -46.27)
CIE-LCHlch(18.26, 52.73, 298.66°)
OKLaboklab(30.54% -0.0012 -0.1339)
OKLCHoklch(30.54% 0.134 269.5)
XYZxyz(3.9340, 2.5760, 15.9095)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172371 #716517
analogous
#175071 #172371 #381771
triadic
#172371 #711723 #237117
tetradic
#172371 #711750 #716517 #177138
square
#172371 #711750 #716517 #177138
split-complementary
#172371 #713817 #507117
monochromatic
#050819 #0D133E #172371 #2133A4 #2E44D4

Accessibility & contrast

On white

13.86
#172371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172371
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172371#FFFFFF#000000##FFFFFF
##1723711.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172371;
/* rgb */ color: rgb(23, 35, 113);
/* oklch */ color: oklch(30.5% 0.134 269.5);
Tailwind
colors: {
  custom: {
    50: '#645e9b',
    500: '#172371',
    950: '#000000',
  },
}
SCSS
$custom: #172371;
$custom-light: #645e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172371",
  "rgb": {
    "r": 23,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 232,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30543,
    "c": 0.13389,
    "h": 269.5
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

primary
#172371
secondary
#A7993D
accent
#D23FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172371

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

Preview Lab → · Contrast checker → · Palette generator →

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