#172A49#172A49

#172A49 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.6% C 0.062 H 259.7°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#172A49
RGBrgb(23, 42, 73)
HSLhsl(217, 52%, 19%)
HSVhsv(217, 68%, 29%)
CMYKcmyk(68.5%, 42.5%, 0%, 71.4%)
CIE-LABlab(17.08, 3.77, -21.63)
CIE-LCHlch(17.08, 21.95, 279.89°)
OKLaboklab(28.63% -0.0111 -0.0614)
OKLCHoklch(28.63% 0.062 259.7)
XYZxyz(2.3835, 2.3189, 6.6240)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A49 #493617
analogous
#174349 #172A49 #1D1749
triadic
#172A49 #49172A #2A4917
tetradic
#172A49 #491743 #493617 #17491D
square
#172A49 #491743 #493617 #17491D
split-complementary
#172A49 #491D17 #434917
monochromatic
#070D17 #080F1A #172A49 #264578 #3460A6

Accessibility & contrast

On white

14.35
#172A49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#172A49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A49
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A49#FFFFFF#000000##FFFFFF
##172A491.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2D4A
Deuteranopia (green-blind)
#162848
Tritanopia (blue-blind)
#003136
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172a49;
/* rgb */ color: rgb(23, 42, 73);
/* oklch */ color: oklch(28.6% 0.062 259.7);
Tailwind
colors: {
  custom: {
    50: '#5a637c',
    500: '#172a49',
    950: '#000000',
  },
}
SCSS
$custom: #172a49;
$custom-light: #5a637c;
$custom-dark: #000000;
JSON
{
  "hex": "#172a49",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 73
  },
  "hsl": {
    "h": 217.2,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28626,
    "c": 0.06241,
    "h": 259.7
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#172A49
secondary
#80663C
accent
#A54CDC
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#040509
muted
#79797B

Preview Lab

Preview with #172A49

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

Preview Lab → · Contrast checker → · Palette generator →

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