#172152#172152

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

Color values

HEX#172152
RGBrgb(23, 33, 82)
HSLhsl(230, 56%, 21%)
HSVhsv(230, 72%, 32%)
CMYKcmyk(72%, 59.8%, 0%, 67.8%)
CIE-LABlab(14.84, 14.17, -31.35)
CIE-LCHlch(14.84, 34.40, 294.32°)
OKLaboklab(27.12% 0.0009 -0.0901)
OKLCHoklch(27.12% 0.09 270.6)
XYZxyz(2.4197, 1.8788, 8.2161)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172152 #524817
analogous
#173E52 #172152 #2B1752
triadic
#172152 #521721 #215217
tetradic
#172152 #52173E #524817 #17522B
square
#172152 #52173E #524817 #17522B
split-complementary
#172152 #522B17 #3E5217
monochromatic
#070A18 #0A0E22 #172152 #243482 #3247B2

Accessibility & contrast

On white

15.26
#172152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#172152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172152
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172152#FFFFFF#000000##FFFFFF
##1721521.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#002D35
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #172152;
/* rgb */ color: rgb(23, 33, 82);
/* oklch */ color: oklch(27.1% 0.090 270.6);
Tailwind
colors: {
  custom: {
    50: '#5c5b83',
    500: '#172152',
    950: '#000000',
  },
}
SCSS
$custom: #172152;
$custom-light: #5c5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#172152",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 229.831,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27123,
    "c": 0.0901,
    "h": 270.6
  },
  "luminance": 0.01879
}

Semantic roles & 50–950 ramp

primary
#172152
secondary
#897C3C
accent
#C648DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #172152

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

Preview Lab → · Contrast checker → · Palette generator →

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