#172572#172572

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

Color values

HEX#172572
RGBrgb(23, 37, 114)
HSLhsl(231, 66%, 27%)
HSVhsv(231, 80%, 45%)
CMYKcmyk(79.8%, 67.5%, 0%, 55.3%)
CIE-LABlab(18.88, 24.29, -45.89)
CIE-LCHlch(18.88, 51.92, 297.89°)
OKLaboklab(31.03% -0.0025 -0.1327)
OKLCHoklch(31.03% 0.133 268.9)
XYZxyz(4.0511, 2.7198, 16.2278)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172572 #726417
analogous
#175372 #172572 #371772
triadic
#172572 #721725 #257217
tetradic
#172572 #721753 #726417 #177237
square
#172572 #721753 #726417 #177237
split-complementary
#172572 #723717 #537217
monochromatic
#050819 #0D143F #172572 #2136A5 #2E48D5

Accessibility & contrast

On white

13.60
#172572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172572
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172572#FFFFFF#000000##FFFFFF
##1725721.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003948
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172572;
/* rgb */ color: rgb(23, 37, 114);
/* oklch */ color: oklch(31.0% 0.133 268.9);
Tailwind
colors: {
  custom: {
    50: '#645f9b',
    500: '#172572',
    950: '#000000',
  },
}
SCSS
$custom: #172572;
$custom-light: #645f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172572",
  "rgb": {
    "r": 23,
    "g": 37,
    "b": 114
  },
  "hsl": {
    "h": 230.769,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31032,
    "c": 0.13277,
    "h": 268.9
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#172572
secondary
#A8973D
accent
#CF3EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172572

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

Preview Lab → · Contrast checker → · Palette generator →

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