#172F53#172F53

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

Color values

HEX#172F53
RGBrgb(23, 47, 83)
HSLhsl(216, 57%, 21%)
HSVhsv(216, 72%, 33%)
CMYKcmyk(72.3%, 43.4%, 0%, 67.5%)
CIE-LABlab(19.39, 4.25, -24.71)
CIE-LCHlch(19.39, 25.08, 279.75°)
OKLaboklab(30.63% -0.0145 -0.0704)
OKLCHoklch(30.63% 0.072 258.4)
XYZxyz(2.9306, 2.8394, 8.5756)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F53 #533B17
analogous
#174D53 #172F53 #1D1753
triadic
#172F53 #53172F #2F5317
tetradic
#172F53 #53174D #533B17 #17531D
square
#172F53 #53174D #533B17 #17531D
split-complementary
#172F53 #531D17 #4D5317
monochromatic
#070E18 #0A1423 #172F53 #244A83 #3265B3

Accessibility & contrast

On white

13.39
#172F53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172F53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F53
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F53#FFFFFF#000000##FFFFFF
##172F531.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3254
Deuteranopia (green-blind)
#162C52
Tritanopia (blue-blind)
#00373D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172f53;
/* rgb */ color: rgb(23, 47, 83);
/* oklch */ color: oklch(30.6% 0.072 258.4);
Tailwind
colors: {
  custom: {
    50: '#5c6783',
    500: '#172f53',
    950: '#000000',
  },
}
SCSS
$custom: #172f53;
$custom-light: #5c6783;
$custom-dark: #000000;
JSON
{
  "hex": "#172f53",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 83
  },
  "hsl": {
    "h": 216,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30626,
    "c": 0.07186,
    "h": 258.4
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#172F53
secondary
#8A6B3C
accent
#A348E0
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060A
muted
#797A7C

Preview Lab

Preview with #172F53

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

Preview Lab → · Contrast checker → · Palette generator →

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