#172F54#172F54

#172F54 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.7% C 0.073 H 258.8°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#172F54
RGBrgb(23, 47, 84)
HSLhsl(216, 57%, 21%)
HSVhsv(216, 73%, 33%)
CMYKcmyk(72.6%, 44%, 0%, 67.1%)
CIE-LABlab(19.45, 4.66, -25.28)
CIE-LCHlch(19.45, 25.71, 280.45°)
OKLaboklab(30.7% -0.0142 -0.072)
OKLCHoklch(30.7% 0.073 258.8)
XYZxyz(2.9695, 2.8550, 8.7804)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F54 #543C17
analogous
#174D54 #172F54 #1D1754
triadic
#172F54 #54172F #2F5417
tetradic
#172F54 #54174D #543C17 #17541D
square
#172F54 #54174D #543C17 #17541D
split-complementary
#172F54 #541D17 #4D5417
monochromatic
#070D18 #0A1424 #172F54 #244A84 #3165B4

Accessibility & contrast

On white

13.37
#172F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F54
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F54#FFFFFF#000000##FFFFFF
##172F541.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3255
Deuteranopia (green-blind)
#152D53
Tritanopia (blue-blind)
#00383D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172f54;
/* rgb */ color: rgb(23, 47, 84);
/* oklch */ color: oklch(30.7% 0.073 258.8);
Tailwind
colors: {
  custom: {
    50: '#5c6784',
    500: '#172f54',
    950: '#000000',
  },
}
SCSS
$custom: #172f54;
$custom-light: #5c6784;
$custom-dark: #000000;
JSON
{
  "hex": "#172f54",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 84
  },
  "hsl": {
    "h": 216.393,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30697,
    "c": 0.07344,
    "h": 258.8
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#172F54
secondary
#8B6C3C
accent
#A448E0
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #172F54

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

Preview Lab → · Contrast checker → · Palette generator →

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