#172472#172472

#172472 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.8% C 0.134 H 269.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#172472
RGBrgb(23, 36, 114)
HSLhsl(231, 66%, 27%)
HSVhsv(231, 80%, 45%)
CMYKcmyk(79.8%, 68.4%, 0%, 55.3%)
CIE-LABlab(18.62, 24.99, -46.33)
CIE-LCHlch(18.62, 52.64, 298.34°)
OKLaboklab(30.84% -0.0019 -0.134)
OKLCHoklch(30.84% 0.134 269.2)
XYZxyz(4.0204, 2.6584, 16.2176)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172472 #726517
analogous
#175272 #172472 #381772
triadic
#172472 #721724 #247217
tetradic
#172472 #721752 #726517 #177238
square
#172472 #721752 #726517 #177238
split-complementary
#172472 #723817 #527217
monochromatic
#050819 #0D143F #172472 #2134A5 #2E46D5

Accessibility & contrast

On white

13.71
#172472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172472
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172472#FFFFFF#000000##FFFFFF
##1724721.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002971
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172472;
/* rgb */ color: rgb(23, 36, 114);
/* oklch */ color: oklch(30.8% 0.134 269.2);
Tailwind
colors: {
  custom: {
    50: '#655e9b',
    500: '#172472',
    950: '#000000',
  },
}
SCSS
$custom: #172472;
$custom-light: #655e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172472",
  "rgb": {
    "r": 23,
    "g": 36,
    "b": 114
  },
  "hsl": {
    "h": 231.429,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30838,
    "c": 0.13404,
    "h": 269.2
  },
  "luminance": 0.02659
}

Semantic roles & 50–950 ramp

primary
#172472
secondary
#A8983D
accent
#D13EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172472

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

Preview Lab → · Contrast checker → · Palette generator →

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