#172A5C#172A5C

#172A5C is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.093 H 265.5°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#172A5C
RGBrgb(23, 42, 92)
HSLhsl(223, 60%, 23%)
HSVhsv(223, 75%, 36%)
CMYKcmyk(75%, 54.3%, 0%, 63.9%)
CIE-LABlab(18.41, 11.64, -32.28)
CIE-LCHlch(18.41, 34.31, 289.83°)
OKLaboklab(30.08% -0.0073 -0.0927)
OKLCHoklch(30.08% 0.093 265.5)
XYZxyz(3.1124, 2.6105, 10.4630)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A5C #5C4917
analogous
#174D5C #172A5C #26175C
triadic
#172A5C #5C172A #2A5C17
tetradic
#172A5C #5C174D #5C4917 #175C26
square
#172A5C #5C174D #5C4917 #175C26
split-complementary
#172A5C #5C2617 #4D5C17
monochromatic
#060B18 #0B142B #172A5C #23408D #2F57BE

Accessibility & contrast

On white

13.80
#172A5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172A5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A5C
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A5C#FFFFFF#000000##FFFFFF
##172A5C1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C305E
Deuteranopia (green-blind)
#002A5B
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172a5c;
/* rgb */ color: rgb(23, 42, 92);
/* oklch */ color: oklch(30.1% 0.093 265.5);
Tailwind
colors: {
  custom: {
    50: '#5e638a',
    500: '#172a5c',
    950: '#000000',
  },
}
SCSS
$custom: #172a5c;
$custom-light: #5e638a;
$custom-dark: #000000;
JSON
{
  "hex": "#172a5c",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 92
  },
  "hsl": {
    "h": 223.478,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30079,
    "c": 0.09299,
    "h": 265.5
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#172A5C
secondary
#937B3C
accent
#B845E3
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172A5C

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

Preview Lab → · Contrast checker → · Palette generator →

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