#172A5A#172A5A

#172A5A is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.9% C 0.090 H 265.1°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#172A5A
RGBrgb(23, 42, 90)
HSLhsl(223, 59%, 22%)
HSVhsv(223, 74%, 35%)
CMYKcmyk(74.4%, 53.3%, 0%, 64.7%)
CIE-LABlab(18.26, 10.80, -31.19)
CIE-LCHlch(18.26, 33.01, 289.10°)
OKLaboklab(29.91% -0.0076 -0.0895)
OKLCHoklch(29.91% 0.09 265.1)
XYZxyz(3.0261, 2.5760, 10.0086)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A5A #5A4717
analogous
#174C5A #172A5A #26175A
triadic
#172A5A #5A172A #2A5A17
tetradic
#172A5A #5A174C #5A4717 #175A26
square
#172A5A #5A174C #5A4717 #175A26
split-complementary
#172A5A #5A2617 #4C5A17
monochromatic
#060B18 #0B1329 #172A5A #23418B #3057BB

Accessibility & contrast

On white

13.86
#172A5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A5A
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A5A#FFFFFF#000000##FFFFFF
##172A5A1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F305C
Deuteranopia (green-blind)
#002A59
Tritanopia (blue-blind)
#00353D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172a5a;
/* rgb */ color: rgb(23, 42, 90);
/* oklch */ color: oklch(29.9% 0.090 265.1);
Tailwind
colors: {
  custom: {
    50: '#5e6389',
    500: '#172a5a',
    950: '#000000',
  },
}
SCSS
$custom: #172a5a;
$custom-light: #5e6389;
$custom-dark: #000000;
JSON
{
  "hex": "#172a5a",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 90
  },
  "hsl": {
    "h": 222.985,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29914,
    "c": 0.08983,
    "h": 265.1
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

primary
#172A5A
secondary
#91793C
accent
#B645E2
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #172A5A

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

Preview Lab → · Contrast checker → · Palette generator →

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