#172B50#172B50

#172B50 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.4% C 0.072 H 261.6°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#172B50
RGBrgb(23, 43, 80)
HSLhsl(219, 55%, 20%)
HSVhsv(219, 71%, 31%)
CMYKcmyk(71.2%, 46.2%, 0%, 68.6%)
CIE-LABlab(17.87, 5.91, -25.12)
CIE-LCHlch(17.87, 25.81, 283.24°)
OKLaboklab(29.39% -0.0106 -0.0716)
OKLCHoklch(29.39% 0.072 261.6)
XYZxyz(2.6647, 2.4888, 7.9278)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B50 #503C17
analogous
#174850 #172B50 #1F1750
triadic
#172B50 #50172B #2B5017
tetradic
#172B50 #501748 #503C17 #17501F
square
#172B50 #501748 #503C17 #17501F
split-complementary
#172B50 #501F17 #485017
monochromatic
#070D18 #091120 #172B50 #254580 #325EAF

Accessibility & contrast

On white

14.02
#172B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172B50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B50
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B50#FFFFFF#000000##FFFFFF
##172B501.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2F51
Deuteranopia (green-blind)
#11294F
Tritanopia (blue-blind)
#003339
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172b50;
/* rgb */ color: rgb(23, 43, 80);
/* oklch */ color: oklch(29.4% 0.072 261.6);
Tailwind
colors: {
  custom: {
    50: '#5b6381',
    500: '#172b50',
    950: '#000000',
  },
}
SCSS
$custom: #172b50;
$custom-light: #5b6381;
$custom-dark: #000000;
JSON
{
  "hex": "#172b50",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 80
  },
  "hsl": {
    "h": 218.947,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29385,
    "c": 0.07241,
    "h": 261.6
  },
  "luminance": 0.02489
}

Semantic roles & 50–950 ramp

primary
#172B50
secondary
#876D3C
accent
#AA49DF
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172B50

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

Preview Lab → · Contrast checker → · Palette generator →

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