#172B52#172B52

#172B52 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.076 H 262.3°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#172B52
RGBrgb(23, 43, 82)
HSLhsl(220, 56%, 21%)
HSVhsv(220, 72%, 32%)
CMYKcmyk(72%, 47.6%, 0%, 67.8%)
CIE-LABlab(18.00, 6.74, -26.25)
CIE-LCHlch(18.00, 27.10, 284.40°)
OKLaboklab(29.53% -0.0101 -0.075)
OKLCHoklch(29.53% 0.076 262.3)
XYZxyz(2.7397, 2.5188, 8.3228)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B52 #523E17
analogous
#174852 #172B52 #201752
triadic
#172B52 #52172B #2B5217
tetradic
#172B52 #521748 #523E17 #175220
square
#172B52 #521748 #523E17 #175220
split-complementary
#172B52 #522017 #485217
monochromatic
#070D18 #0A1222 #172B52 #244482 #325DB2

Accessibility & contrast

On white

13.96
#172B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B52
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B52#FFFFFF#000000##FFFFFF
##172B521.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192F53
Deuteranopia (green-blind)
#0F2951
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172b52;
/* rgb */ color: rgb(23, 43, 82);
/* oklch */ color: oklch(29.5% 0.076 262.3);
Tailwind
colors: {
  custom: {
    50: '#5c6383',
    500: '#172b52',
    950: '#000000',
  },
}
SCSS
$custom: #172b52;
$custom-light: #5c6383;
$custom-dark: #000000;
JSON
{
  "hex": "#172b52",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 82
  },
  "hsl": {
    "h": 219.661,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29533,
    "c": 0.07564,
    "h": 262.3
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#172B52
secondary
#896F3C
accent
#AC48DF
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #172B52

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

Preview Lab → · Contrast checker → · Palette generator →

#172B52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva