#172971#172971

#172971 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.7% C 0.126 H 267.6°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#172971
RGBrgb(23, 41, 113)
HSLhsl(228, 66%, 27%)
HSVhsv(228, 80%, 44%)
CMYKcmyk(79.6%, 63.7%, 0%, 55.7%)
CIE-LABlab(19.88, 21.06, -43.62)
CIE-LCHlch(19.88, 48.43, 295.77°)
OKLaboklab(31.74% -0.0052 -0.126)
OKLCHoklch(31.74% 0.126 267.6)
XYZxyz(4.1259, 2.9598, 15.9734)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172971 #715F17
analogous
#175671 #172971 #321771
triadic
#172971 #711729 #297117
tetradic
#172971 #711756 #715F17 #177132
square
#172971 #711756 #715F17 #177132
split-complementary
#172971 #713217 #567117
monochromatic
#050919 #0D173E #172971 #213BA4 #2E4FD4

Accessibility & contrast

On white

13.19
#172971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172971
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172971#FFFFFF#000000##FFFFFF
##1729711.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172971;
/* rgb */ color: rgb(23, 41, 113);
/* oklch */ color: oklch(31.7% 0.126 267.6);
Tailwind
colors: {
  custom: {
    50: '#64629a',
    500: '#172971',
    950: '#000000',
  },
}
SCSS
$custom: #172971;
$custom-light: #64629a;
$custom-dark: #000000;
JSON
{
  "hex": "#172971",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 113
  },
  "hsl": {
    "h": 228,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3174,
    "c": 0.12615,
    "h": 267.6
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

primary
#172971
secondary
#A7923D
accent
#C73FE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172971

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

Preview Lab → · Contrast checker → · Palette generator →

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