#172972#172972

#172972 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.8% C 0.128 H 267.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#172972
RGBrgb(23, 41, 114)
HSLhsl(228, 66%, 27%)
HSVhsv(228, 80%, 45%)
CMYKcmyk(79.8%, 64%, 0%, 55.3%)
CIE-LABlab(19.97, 21.46, -44.11)
CIE-LCHlch(19.97, 49.06, 295.95°)
OKLaboklab(31.84% -0.0052 -0.1275)
OKLCHoklch(31.84% 0.128 267.7)
XYZxyz(4.1825, 2.9825, 16.2716)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172972 #726017
analogous
#175772 #172972 #331772
triadic
#172972 #721729 #297217
tetradic
#172972 #721757 #726017 #177233
square
#172972 #721757 #726017 #177233
split-complementary
#172972 #723317 #577217
monochromatic
#050919 #0D173F #172972 #213BA5 #2E4FD5

Accessibility & contrast

On white

13.15
#172972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172972
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172972#FFFFFF#000000##FFFFFF
##1729721.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172972;
/* rgb */ color: rgb(23, 41, 114);
/* oklch */ color: oklch(31.8% 0.128 267.7);
Tailwind
colors: {
  custom: {
    50: '#64629b',
    500: '#172972',
    950: '#000000',
  },
}
SCSS
$custom: #172972;
$custom-light: #64629b;
$custom-dark: #000000;
JSON
{
  "hex": "#172972",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 228.132,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31836,
    "c": 0.1276,
    "h": 267.7
  },
  "luminance": 0.02983
}

Semantic roles & 50–950 ramp

primary
#172972
secondary
#A8933D
accent
#C83EE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172972

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

Preview Lab → · Contrast checker → · Palette generator →

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