#172A46#172A46

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

Color values

HEX#172A46
RGBrgb(23, 42, 70)
HSLhsl(216, 51%, 18%)
HSVhsv(216, 67%, 27%)
CMYKcmyk(67.1%, 40%, 0%, 72.5%)
CIE-LABlab(16.89, 2.55, -19.87)
CIE-LCHlch(16.89, 20.03, 277.32°)
OKLaboklab(28.42% -0.012 -0.0563)
OKLCHoklch(28.42% 0.058 258)
XYZxyz(2.2864, 2.2801, 6.1128)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A46 #463317
analogous
#174146 #172A46 #1B1746
triadic
#172A46 #46172A #2A4617
tetradic
#172A46 #461741 #463317 #17461B
square
#172A46 #461741 #463317 #17461B
split-complementary
#172A46 #461B17 #414617
monochromatic
#080E17 #080E18 #172A46 #264674 #3561A2

Accessibility & contrast

On white

14.42
#172A46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A46
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A46#FFFFFF#000000##FFFFFF
##172A461.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172a46;
/* rgb */ color: rgb(23, 42, 70);
/* oklch */ color: oklch(28.4% 0.058 258.0);
Tailwind
colors: {
  custom: {
    50: '#596379',
    500: '#172a46',
    950: '#000000',
  },
}
SCSS
$custom: #172a46;
$custom-light: #596379;
$custom-dark: #000000;
JSON
{
  "hex": "#172a46",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 70
  },
  "hsl": {
    "h": 215.745,
    "s": 50.538,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28421,
    "c": 0.05753,
    "h": 258
  },
  "luminance": 0.0228
}

Semantic roles & 50–950 ramp

primary
#172A46
secondary
#7D633C
accent
#A14EDA
background
#F5F5F7
surface
#E9EAED
border
#C5C6C8
text
#040509
muted
#79797B

Preview Lab

Preview with #172A46

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

Preview Lab → · Contrast checker → · Palette generator →

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