#172A57#172A57

#172A57 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.7% C 0.085 H 264.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#172A57
RGBrgb(23, 42, 87)
HSLhsl(222, 58%, 22%)
HSVhsv(222, 74%, 34%)
CMYKcmyk(73.6%, 51.7%, 0%, 65.9%)
CIE-LABlab(18.04, 9.55, -29.55)
CIE-LCHlch(18.04, 31.06, 287.91°)
OKLaboklab(29.67% -0.0081 -0.0847)
OKLCHoklch(29.67% 0.085 264.6)
XYZxyz(2.9010, 2.5259, 9.3496)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A57 #574417
analogous
#174A57 #172A57 #241757
triadic
#172A57 #57172A #2A5717
tetradic
#172A57 #57174A #574417 #175724
square
#172A57 #57174A #574417 #175724
split-complementary
#172A57 #572417 #4A5717
monochromatic
#060C18 #0A1327 #172A57 #244187 #3159B8

Accessibility & contrast

On white

13.95
#172A57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A57
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A57#FFFFFF#000000##FFFFFF
##172A571.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122F59
Deuteranopia (green-blind)
#042956
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172a57;
/* rgb */ color: rgb(23, 42, 87);
/* oklch */ color: oklch(29.7% 0.085 264.6);
Tailwind
colors: {
  custom: {
    50: '#5d6387',
    500: '#172a57',
    950: '#000000',
  },
}
SCSS
$custom: #172a57;
$custom-light: #5d6387;
$custom-dark: #000000;
JSON
{
  "hex": "#172a57",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 87
  },
  "hsl": {
    "h": 222.188,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29672,
    "c": 0.08506,
    "h": 264.6
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#172A57
secondary
#8E763C
accent
#B346E1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #172A57

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

Preview Lab → · Contrast checker → · Palette generator →

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