#172A58#172A58

#172A58 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.087 H 264.8°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#172A58
RGBrgb(23, 42, 88)
HSLhsl(222, 59%, 22%)
HSVhsv(222, 74%, 35%)
CMYKcmyk(73.9%, 52.3%, 0%, 65.5%)
CIE-LABlab(18.11, 9.97, -30.10)
CIE-LCHlch(18.11, 31.71, 288.32°)
OKLaboklab(29.75% -0.0079 -0.0863)
OKLCHoklch(29.75% 0.087 264.8)
XYZxyz(2.9421, 2.5424, 9.5663)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A58 #584517
analogous
#174B58 #172A58 #251758
triadic
#172A58 #58172A #2A5817
tetradic
#172A58 #58174B #584517 #175825
square
#172A58 #58174B #584517 #175825
split-complementary
#172A58 #582517 #4B5817
monochromatic
#060C18 #0A1327 #172A58 #244189 #3058B9

Accessibility & contrast

On white

13.92
#172A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#172A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A58
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A58#FFFFFF#000000##FFFFFF
##172A581.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112F5A
Deuteranopia (green-blind)
#032957
Tritanopia (blue-blind)
#00353C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172a58;
/* rgb */ color: rgb(23, 42, 88);
/* oklch */ color: oklch(29.8% 0.087 264.8);
Tailwind
colors: {
  custom: {
    50: '#5d6387',
    500: '#172a58',
    950: '#000000',
  },
}
SCSS
$custom: #172a58;
$custom-light: #5d6387;
$custom-dark: #000000;
JSON
{
  "hex": "#172a58",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 88
  },
  "hsl": {
    "h": 222.462,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29752,
    "c": 0.08666,
    "h": 264.8
  },
  "luminance": 0.02543
}

Semantic roles & 50–950 ramp

primary
#172A58
secondary
#8F773C
accent
#B446E2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #172A58

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

Preview Lab → · Contrast checker → · Palette generator →

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