#172159#172159

#172159 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.8% C 0.101 H 270.7°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#172159
RGBrgb(23, 33, 89)
HSLhsl(231, 59%, 22%)
HSVhsv(231, 74%, 35%)
CMYKcmyk(74.2%, 62.9%, 0%, 65.1%)
CIE-LABlab(15.44, 17.04, -35.09)
CIE-LCHlch(15.44, 39.01, 295.90°)
OKLaboklab(27.76% 0.0012 -0.1011)
OKLCHoklch(27.76% 0.101 270.7)
XYZxyz(2.6998, 1.9909, 9.6913)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172159 #594F17
analogous
#174259 #172159 #2E1759
triadic
#172159 #591721 #215917
tetradic
#172159 #591742 #594F17 #17592E
square
#172159 #591742 #594F17 #17592E
split-complementary
#172159 #592E17 #425917
monochromatic
#060918 #0A0F28 #172159 #24338A #3045BA

Accessibility & contrast

On white

15.02
#172159 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#172159 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172159
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172159#FFFFFF#000000##FFFFFF
##1721591.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#002F39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #172159;
/* rgb */ color: rgb(23, 33, 89);
/* oklch */ color: oklch(27.8% 0.101 270.7);
Tailwind
colors: {
  custom: {
    50: '#5e5c88',
    500: '#172159',
    950: '#000000',
  },
}
SCSS
$custom: #172159;
$custom-light: #5e5c88;
$custom-dark: #000000;
JSON
{
  "hex": "#172159",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 89
  },
  "hsl": {
    "h": 230.909,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27763,
    "c": 0.10113,
    "h": 270.7
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#172159
secondary
#90833C
accent
#CA46E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #172159

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

Preview Lab → · Contrast checker → · Palette generator →

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