#172F52#172F52

#172F52 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.6% C 0.070 H 257.9°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#172F52
RGBrgb(23, 47, 82)
HSLhsl(216, 56%, 21%)
HSVhsv(216, 72%, 32%)
CMYKcmyk(72%, 42.7%, 0%, 67.8%)
CIE-LABlab(19.33, 3.84, -24.15)
CIE-LCHlch(19.33, 24.45, 279.03°)
OKLaboklab(30.56% -0.0148 -0.0687)
OKLCHoklch(30.56% 0.07 257.9)
XYZxyz(2.8923, 2.8241, 8.3737)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F52 #523A17
analogous
#174C52 #172F52 #1C1752
triadic
#172F52 #52172F #2F5217
tetradic
#172F52 #52174C #523A17 #17521C
square
#172F52 #52174C #523A17 #17521C
split-complementary
#172F52 #521C17 #4C5217
monochromatic
#070E18 #0A1422 #172F52 #244A82 #3266B2

Accessibility & contrast

On white

13.42
#172F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F52
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F52#FFFFFF#000000##FFFFFF
##172F521.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3253
Deuteranopia (green-blind)
#172C51
Tritanopia (blue-blind)
#00373C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172f52;
/* rgb */ color: rgb(23, 47, 82);
/* oklch */ color: oklch(30.6% 0.070 257.9);
Tailwind
colors: {
  custom: {
    50: '#5b6783',
    500: '#172f52',
    950: '#000000',
  },
}
SCSS
$custom: #172f52;
$custom-light: #5b6783;
$custom-dark: #000000;
JSON
{
  "hex": "#172f52",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 82
  },
  "hsl": {
    "h": 215.593,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.30556,
    "c": 0.07028,
    "h": 257.9
  },
  "luminance": 0.02824
}

Semantic roles & 50–950 ramp

primary
#172F52
secondary
#896A3C
accent
#A248DF
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060A
muted
#797A7C

Preview Lab

Preview with #172F52

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

Preview Lab → · Contrast checker → · Palette generator →

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