#172859#172859

#172859 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.091 H 266.4°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#172859
RGBrgb(23, 40, 89)
HSLhsl(225, 59%, 22%)
HSVhsv(225, 74%, 35%)
CMYKcmyk(74.2%, 55.1%, 0%, 65.1%)
CIE-LABlab(17.56, 11.86, -31.66)
CIE-LCHlch(17.56, 33.81, 290.54°)
OKLaboklab(29.35% -0.0057 -0.0909)
OKLCHoklch(29.35% 0.091 266.4)
XYZxyz(2.9147, 2.4207, 9.7629)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172859 #594817
analogous
#174959 #172859 #271759
triadic
#172859 #591728 #285917
tetradic
#172859 #591749 #594817 #175927
square
#172859 #591749 #594817 #175927
split-complementary
#172859 #592717 #495917
monochromatic
#060B18 #0A1228 #172859 #243E8A #3054BA

Accessibility & contrast

On white

14.15
#172859 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#172859 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172859
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172859#FFFFFF#000000##FFFFFF
##1728591.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2E5B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172859;
/* rgb */ color: rgb(23, 40, 89);
/* oklch */ color: oklch(29.4% 0.091 266.4);
Tailwind
colors: {
  custom: {
    50: '#5d6188',
    500: '#172859',
    950: '#000000',
  },
}
SCSS
$custom: #172859;
$custom-light: #5d6188;
$custom-dark: #000000;
JSON
{
  "hex": "#172859",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 89
  },
  "hsl": {
    "h": 224.545,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29355,
    "c": 0.0911,
    "h": 266.4
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#172859
secondary
#907A3C
accent
#BA46E2
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05050B
muted
#79797C

Preview Lab

Preview with #172859

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

Preview Lab → · Contrast checker → · Palette generator →

#172859 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva