#172A50#172A50

#172A50 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.074 H 262.7°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#172A50
RGBrgb(23, 42, 80)
HSLhsl(220, 55%, 20%)
HSVhsv(220, 71%, 31%)
CMYKcmyk(71.2%, 47.5%, 0%, 68.6%)
CIE-LABlab(17.54, 6.64, -25.65)
CIE-LCHlch(17.54, 26.49, 284.52°)
OKLaboklab(29.13% -0.0094 -0.0732)
OKLCHoklch(29.13% 0.074 262.7)
XYZxyz(2.6288, 2.4170, 7.9159)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A50 #503D17
analogous
#174650 #172A50 #201750
triadic
#172A50 #50172A #2A5017
tetradic
#172A50 #501746 #503D17 #175020
square
#172A50 #501746 #503D17 #175020
split-complementary
#172A50 #502017 #465017
monochromatic
#070C18 #091120 #172A50 #254380 #325CAF

Accessibility & contrast

On white

14.16
#172A50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#172A50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A50
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A50#FFFFFF#000000##FFFFFF
##172A501.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182E51
Deuteranopia (green-blind)
#0F294F
Tritanopia (blue-blind)
#003339
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172a50;
/* rgb */ color: rgb(23, 42, 80);
/* oklch */ color: oklch(29.1% 0.074 262.7);
Tailwind
colors: {
  custom: {
    50: '#5b6381',
    500: '#172a50',
    950: '#000000',
  },
}
SCSS
$custom: #172a50;
$custom-light: #5b6381;
$custom-dark: #000000;
JSON
{
  "hex": "#172a50",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 80
  },
  "hsl": {
    "h": 220,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29131,
    "c": 0.07379,
    "h": 262.7
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#172A50
secondary
#876E3C
accent
#AD49DF
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172A50

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

Preview Lab → · Contrast checker → · Palette generator →

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