#172B58#172B58

#172B58 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.0% C 0.085 H 264.0°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#172B58
RGBrgb(23, 43, 88)
HSLhsl(222, 59%, 22%)
HSVhsv(222, 74%, 35%)
CMYKcmyk(73.9%, 51.1%, 0%, 65.5%)
CIE-LABlab(18.43, 9.24, -29.59)
CIE-LCHlch(18.43, 31.00, 287.33°)
OKLaboklab(30% -0.009 -0.0848)
OKLCHoklch(30% 0.085 264)
XYZxyz(2.9781, 2.6142, 9.5783)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B58 #584417
analogous
#174C58 #172B58 #231758
triadic
#172B58 #58172B #2B5817
tetradic
#172B58 #58174C #584417 #175823
square
#172B58 #58174C #584417 #175823
split-complementary
#172B58 #582317 #4C5817
monochromatic
#060C18 #0A1327 #172B58 #244389 #305AB9

Accessibility & contrast

On white

13.79
#172B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172B58
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B58#FFFFFF#000000##FFFFFF
##172B581.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13305A
Deuteranopia (green-blind)
#062A57
Tritanopia (blue-blind)
#00353D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172b58;
/* rgb */ color: rgb(23, 43, 88);
/* oklch */ color: oklch(30.0% 0.085 264.0);
Tailwind
colors: {
  custom: {
    50: '#5d6387',
    500: '#172b58',
    950: '#000000',
  },
}
SCSS
$custom: #172b58;
$custom-light: #5d6387;
$custom-dark: #000000;
JSON
{
  "hex": "#172b58",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 88
  },
  "hsl": {
    "h": 221.538,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29995,
    "c": 0.08524,
    "h": 264
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#172B58
secondary
#8F753C
accent
#B246E2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #172B58

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

Preview Lab → · Contrast checker → · Palette generator →

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