#172571#172571

#172571 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.131 H 268.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#172571
RGBrgb(23, 37, 113)
HSLhsl(231, 66%, 27%)
HSVhsv(231, 80%, 44%)
CMYKcmyk(79.6%, 67.3%, 0%, 55.7%)
CIE-LABlab(18.79, 23.89, -45.41)
CIE-LCHlch(18.79, 51.31, 297.75°)
OKLaboklab(30.93% -0.0025 -0.1313)
OKLCHoklch(30.93% 0.131 268.9)
XYZxyz(3.9945, 2.6971, 15.9297)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172571 #716317
analogous
#175271 #172571 #361771
triadic
#172571 #711725 #257117
tetradic
#172571 #711752 #716317 #177136
square
#172571 #711752 #716317 #177136
split-complementary
#172571 #713617 #527117
monochromatic
#050819 #0D143E #172571 #2136A4 #2E48D4

Accessibility & contrast

On white

13.64
#172571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172571
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172571#FFFFFF#000000##FFFFFF
##1725711.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172571;
/* rgb */ color: rgb(23, 37, 113);
/* oklch */ color: oklch(30.9% 0.131 268.9);
Tailwind
colors: {
  custom: {
    50: '#645f9b',
    500: '#172571',
    950: '#000000',
  },
}
SCSS
$custom: #172571;
$custom-light: #645f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172571",
  "rgb": {
    "r": 23,
    "g": 37,
    "b": 113
  },
  "hsl": {
    "h": 230.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30931,
    "c": 0.13135,
    "h": 268.9
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#172571
secondary
#A7963D
accent
#CF3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172571

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

Preview Lab → · Contrast checker → · Palette generator →

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