#172156#172156

#172156 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.096 H 270.6°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#172156
RGBrgb(23, 33, 86)
HSLhsl(230, 58%, 21%)
HSVhsv(230, 73%, 34%)
CMYKcmyk(73.3%, 61.6%, 0%, 66.3%)
CIE-LABlab(15.18, 15.81, -33.50)
CIE-LCHlch(15.18, 37.04, 295.27°)
OKLaboklab(27.49% 0.0011 -0.0964)
OKLCHoklch(27.49% 0.096 270.6)
XYZxyz(2.5764, 1.9415, 9.0413)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172156 #564C17
analogous
#174156 #172156 #2D1756
triadic
#172156 #561721 #215617
tetradic
#172156 #561741 #564C17 #17562D
square
#172156 #561741 #564C17 #17562D
split-complementary
#172156 #562D17 #415617
monochromatic
#060918 #0A0E26 #172156 #243486 #3146B7

Accessibility & contrast

On white

15.13
#172156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#172156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172156
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172156#FFFFFF#000000##FFFFFF
##1721561.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #172156;
/* rgb */ color: rgb(23, 33, 86);
/* oklch */ color: oklch(27.5% 0.096 270.6);
Tailwind
colors: {
  custom: {
    50: '#5d5c86',
    500: '#172156',
    950: '#000000',
  },
}
SCSS
$custom: #172156;
$custom-light: #5d5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#172156",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 230.476,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27485,
    "c": 0.09645,
    "h": 270.6
  },
  "luminance": 0.01942
}

Semantic roles & 50–950 ramp

primary
#172156
secondary
#8D803C
accent
#C947E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #172156

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

Preview Lab → · Contrast checker → · Palette generator →

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