#172A45#172A45

#172A45 is a dark, muted blue. Relative luminance 0.023; OKLCH L 28.4% C 0.056 H 257.3°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#172A45
RGBrgb(23, 42, 69)
HSLhsl(215, 50%, 18%)
HSVhsv(215, 67%, 27%)
CMYKcmyk(66.7%, 39.1%, 0%, 72.9%)
CIE-LABlab(16.83, 2.15, -19.28)
CIE-LCHlch(16.83, 19.40, 276.37°)
OKLaboklab(28.35% -0.0123 -0.0545)
OKLCHoklch(28.35% 0.056 257.3)
XYZxyz(2.2551, 2.2676, 5.9479)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A45 #453217
analogous
#174145 #172A45 #1B1745
triadic
#172A45 #45172A #2A4517
tetradic
#172A45 #451741 #453217 #17451B
square
#172A45 #451741 #453217 #17451B
split-complementary
#172A45 #451B17 #414517
monochromatic
#080E17 #080E17 #172A45 #264673 #3662A1

Accessibility & contrast

On white

14.45
#172A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#172A45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A45
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A45#FFFFFF#000000##FFFFFF
##172A451.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2C46
Deuteranopia (green-blind)
#192844
Tritanopia (blue-blind)
#003034
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172a45;
/* rgb */ color: rgb(23, 42, 69);
/* oklch */ color: oklch(28.4% 0.056 257.3);
Tailwind
colors: {
  custom: {
    50: '#596379',
    500: '#172a45',
    950: '#000000',
  },
}
SCSS
$custom: #172a45;
$custom-light: #596379;
$custom-dark: #000000;
JSON
{
  "hex": "#172a45",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 69
  },
  "hsl": {
    "h": 215.217,
    "s": 50,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28354,
    "c": 0.05591,
    "h": 257.3
  },
  "luminance": 0.02268
}

Semantic roles & 50–950 ramp

primary
#172A45
secondary
#7C613C
accent
#A04EDA
background
#F5F5F7
surface
#E9EAED
border
#C5C6C8
text
#040509
muted
#79797B

Preview Lab

Preview with #172A45

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

Preview Lab → · Contrast checker → · Palette generator →

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