#172B57#172B57

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

Color values

HEX#172B57
RGBrgb(23, 43, 87)
HSLhsl(221, 58%, 22%)
HSVhsv(221, 74%, 34%)
CMYKcmyk(73.6%, 50.6%, 0%, 65.9%)
CIE-LABlab(18.35, 8.82, -29.04)
CIE-LCHlch(18.35, 30.35, 286.89°)
OKLaboklab(29.92% -0.0091 -0.0831)
OKLCHoklch(29.92% 0.084 263.7)
XYZxyz(2.9369, 2.5977, 9.3616)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B57 #574317
analogous
#174B57 #172B57 #231757
triadic
#172B57 #57172B #2B5717
tetradic
#172B57 #57174B #574317 #175723
square
#172B57 #57174B #574317 #175723
split-complementary
#172B57 #572317 #4B5717
monochromatic
#060C18 #0A1327 #172B57 #244387 #315BB8

Accessibility & contrast

On white

13.82
#172B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172B57
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B57#FFFFFF#000000##FFFFFF
##172B571.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143059
Deuteranopia (green-blind)
#072A56
Tritanopia (blue-blind)
#00353C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172b57;
/* rgb */ color: rgb(23, 43, 87);
/* oklch */ color: oklch(29.9% 0.084 263.7);
Tailwind
colors: {
  custom: {
    50: '#5d6387',
    500: '#172b57',
    950: '#000000',
  },
}
SCSS
$custom: #172b57;
$custom-light: #5d6387;
$custom-dark: #000000;
JSON
{
  "hex": "#172b57",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 87
  },
  "hsl": {
    "h": 221.25,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29916,
    "c": 0.08365,
    "h": 263.7
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#172B57
secondary
#8E743C
accent
#B146E1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #172B57

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

Preview Lab → · Contrast checker → · Palette generator →

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