#172A54#172A54

#172A54 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.4% C 0.080 H 263.9°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#172A54
RGBrgb(23, 42, 84)
HSLhsl(221, 57%, 21%)
HSVhsv(221, 73%, 33%)
CMYKcmyk(72.6%, 50%, 0%, 67.1%)
CIE-LABlab(17.82, 8.30, -27.89)
CIE-LCHlch(17.82, 29.10, 286.58°)
OKLaboklab(29.44% -0.0086 -0.0798)
OKLCHoklch(29.44% 0.08 263.9)
XYZxyz(2.7810, 2.4779, 8.7175)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A54 #544117
analogous
#174854 #172A54 #221754
triadic
#172A54 #54172A #2A5417
tetradic
#172A54 #541748 #544117 #175422
square
#172A54 #541748 #544117 #175422
split-complementary
#172A54 #542217 #485417
monochromatic
#070C18 #0A1224 #172A54 #244284 #315AB4

Accessibility & contrast

On white

14.04
#172A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A54
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A54#FFFFFF#000000##FFFFFF
##172A541.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152F56
Deuteranopia (green-blind)
#092953
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172a54;
/* rgb */ color: rgb(23, 42, 84);
/* oklch */ color: oklch(29.4% 0.080 263.9);
Tailwind
colors: {
  custom: {
    50: '#5c6384',
    500: '#172a54',
    950: '#000000',
  },
}
SCSS
$custom: #172a54;
$custom-light: #5c6384;
$custom-dark: #000000;
JSON
{
  "hex": "#172a54",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 84
  },
  "hsl": {
    "h": 221.311,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29436,
    "c": 0.08025,
    "h": 263.9
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#172A54
secondary
#8B723C
accent
#B148E0
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172A54

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

Preview Lab → · Contrast checker → · Palette generator →

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