#172171#172171

#172171 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.136 H 270.0°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#172171
RGBrgb(23, 33, 113)
HSLhsl(233, 66%, 27%)
HSVhsv(233, 80%, 44%)
CMYKcmyk(79.6%, 70.8%, 0%, 55.7%)
CIE-LABlab(17.74, 26.66, -47.12)
CIE-LCHlch(17.74, 54.14, 299.50°)
OKLaboklab(30.17% 0 -0.1364)
OKLCHoklch(30.17% 0.136 270)
XYZxyz(3.8768, 2.4617, 15.8904)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172171 #716717
analogous
#174E71 #172171 #3A1771
triadic
#172171 #711721 #217117
tetradic
#172171 #71174E #716717 #17713A
square
#172171 #71174E #716717 #17713A
split-complementary
#172171 #713A17 #4E7117
monochromatic
#050719 #0D123E #172171 #2130A4 #2E40D4

Accessibility & contrast

On white

14.07
#172171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#172171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172171
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172171#FFFFFF#000000##FFFFFF
##1721711.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172171;
/* rgb */ color: rgb(23, 33, 113);
/* oklch */ color: oklch(30.2% 0.136 270.0);
Tailwind
colors: {
  custom: {
    50: '#655c9b',
    500: '#172171',
    950: '#000000',
  },
}
SCSS
$custom: #172171;
$custom-light: #655c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172171",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 233.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30168,
    "c": 0.13636,
    "h": 270
  },
  "luminance": 0.02462
}

Semantic roles & 50–950 ramp

primary
#172171
secondary
#A79B3D
accent
#D63FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172171

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

Preview Lab → · Contrast checker → · Palette generator →

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