#172A5B#172A5B

#172A5B is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.0% C 0.091 H 265.3°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#172A5B
RGBrgb(23, 42, 91)
HSLhsl(223, 60%, 22%)
HSVhsv(223, 75%, 36%)
CMYKcmyk(74.7%, 53.8%, 0%, 64.3%)
CIE-LABlab(18.33, 11.22, -31.74)
CIE-LCHlch(18.33, 33.66, 289.48°)
OKLaboklab(30% -0.0075 -0.0911)
OKLCHoklch(30% 0.091 265.3)
XYZxyz(3.0690, 2.5931, 10.2343)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A5B #5B4817
analogous
#174C5B #172A5B #26175B
triadic
#172A5B #5B172A #2A5B17
tetradic
#172A5B #5B174C #5B4817 #175B26
square
#172A5B #5B174C #5B4817 #175B26
split-complementary
#172A5B #5B2617 #4C5B17
monochromatic
#060B18 #0B132A #172A5B #23418C #3057BD

Accessibility & contrast

On white

13.83
#172A5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A5B
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A5B#FFFFFF#000000##FFFFFF
##172A5B1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172a5b;
/* rgb */ color: rgb(23, 42, 91);
/* oklch */ color: oklch(30.0% 0.091 265.3);
Tailwind
colors: {
  custom: {
    50: '#5e638a',
    500: '#172a5b',
    950: '#000000',
  },
}
SCSS
$custom: #172a5b;
$custom-light: #5e638a;
$custom-dark: #000000;
JSON
{
  "hex": "#172a5b",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 91
  },
  "hsl": {
    "h": 223.235,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29996,
    "c": 0.09141,
    "h": 265.3
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#172A5B
secondary
#927A3C
accent
#B745E3
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172A5B

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

Preview Lab → · Contrast checker → · Palette generator →

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