#172E54#172E54

#172E54 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.4% C 0.075 H 259.9°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#172E54
RGBrgb(23, 46, 84)
HSLhsl(217, 57%, 21%)
HSVhsv(217, 73%, 33%)
CMYKcmyk(72.6%, 45.2%, 0%, 67.1%)
CIE-LABlab(19.12, 5.38, -25.81)
CIE-LCHlch(19.12, 26.36, 281.78°)
OKLaboklab(30.44% -0.0131 -0.0736)
OKLCHoklch(30.44% 0.075 259.9)
XYZxyz(2.9300, 2.7760, 8.7672)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E54 #543D17
analogous
#174C54 #172E54 #1E1754
triadic
#172E54 #54172E #2E5417
tetradic
#172E54 #54174C #543D17 #17541E
square
#172E54 #54174C #543D17 #17541E
split-complementary
#172E54 #541E17 #4C5417
monochromatic
#070D18 #0A1424 #172E54 #244884 #3163B4

Accessibility & contrast

On white

13.50
#172E54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172E54
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E54#FFFFFF#000000##FFFFFF
##172E541.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3155
Deuteranopia (green-blind)
#132C53
Tritanopia (blue-blind)
#00373C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172e54;
/* rgb */ color: rgb(23, 46, 84);
/* oklch */ color: oklch(30.4% 0.075 259.9);
Tailwind
colors: {
  custom: {
    50: '#5c6684',
    500: '#172e54',
    950: '#000000',
  },
}
SCSS
$custom: #172e54;
$custom-light: #5c6684;
$custom-dark: #000000;
JSON
{
  "hex": "#172e54",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 84
  },
  "hsl": {
    "h": 217.377,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.30441,
    "c": 0.07476,
    "h": 259.9
  },
  "luminance": 0.02776
}

Semantic roles & 50–950 ramp

primary
#172E54
secondary
#8B6D3C
accent
#A748E0
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #172E54

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

Preview Lab → · Contrast checker → · Palette generator →

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