#172471#172471

#172471 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.7% C 0.133 H 269.2°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#172471
RGBrgb(23, 36, 113)
HSLhsl(231, 66%, 27%)
HSVhsv(231, 80%, 44%)
CMYKcmyk(79.6%, 68.1%, 0%, 55.7%)
CIE-LABlab(18.52, 24.59, -45.84)
CIE-LCHlch(18.52, 52.02, 298.21°)
OKLaboklab(30.74% -0.0018 -0.1326)
OKLCHoklch(30.74% 0.133 269.2)
XYZxyz(3.9638, 2.6357, 15.9194)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172471 #716417
analogous
#175171 #172471 #371771
triadic
#172471 #711724 #247117
tetradic
#172471 #711751 #716417 #177137
square
#172471 #711751 #716417 #177137
split-complementary
#172471 #713717 #517117
monochromatic
#050819 #0D143E #172471 #2134A4 #2E46D4

Accessibility & contrast

On white

13.75
#172471 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#172471 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172471
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172471#FFFFFF#000000##FFFFFF
##1724711.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172471;
/* rgb */ color: rgb(23, 36, 113);
/* oklch */ color: oklch(30.7% 0.133 269.2);
Tailwind
colors: {
  custom: {
    50: '#645e9b',
    500: '#172471',
    950: '#000000',
  },
}
SCSS
$custom: #172471;
$custom-light: #645e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172471",
  "rgb": {
    "r": 23,
    "g": 36,
    "b": 113
  },
  "hsl": {
    "h": 231.333,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30736,
    "c": 0.13262,
    "h": 269.2
  },
  "luminance": 0.02636
}

Semantic roles & 50–950 ramp

primary
#172471
secondary
#A7973D
accent
#D03FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172471

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

Preview Lab → · Contrast checker → · Palette generator →

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