#172672#172672

#172672 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.132 H 268.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#172672
RGBrgb(23, 38, 114)
HSLhsl(230, 66%, 27%)
HSVhsv(230, 80%, 45%)
CMYKcmyk(79.8%, 66.7%, 0%, 55.3%)
CIE-LABlab(19.15, 23.59, -45.45)
CIE-LCHlch(19.15, 51.21, 297.43°)
OKLaboklab(31.23% -0.0032 -0.1315)
OKLCHoklch(31.23% 0.132 268.6)
XYZxyz(4.0827, 2.7828, 16.2383)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172672 #726317
analogous
#175472 #172672 #361772
triadic
#172672 #721726 #267217
tetradic
#172672 #721754 #726317 #177236
square
#172672 #721754 #726317 #177236
split-complementary
#172672 #723617 #547217
monochromatic
#050819 #0D153F #172672 #2137A5 #2E4AD5

Accessibility & contrast

On white

13.49
#172672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172672
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172672#FFFFFF#000000##FFFFFF
##1726721.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172672;
/* rgb */ color: rgb(23, 38, 114);
/* oklch */ color: oklch(31.2% 0.132 268.6);
Tailwind
colors: {
  custom: {
    50: '#64609b',
    500: '#172672',
    950: '#000000',
  },
}
SCSS
$custom: #172672;
$custom-light: #64609b;
$custom-dark: #000000;
JSON
{
  "hex": "#172672",
  "rgb": {
    "r": 23,
    "g": 38,
    "b": 114
  },
  "hsl": {
    "h": 230.11,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31229,
    "c": 0.1315,
    "h": 268.6
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#172672
secondary
#A8963D
accent
#CD3EE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172672

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

Preview Lab → · Contrast checker → · Palette generator →

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