#172857#172857

#172857 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.088 H 266.1°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#172857
RGBrgb(23, 40, 87)
HSLhsl(224, 58%, 22%)
HSVhsv(224, 74%, 34%)
CMYKcmyk(73.6%, 54%, 0%, 65.9%)
CIE-LABlab(17.40, 11.03, -30.57)
CIE-LCHlch(17.40, 32.50, 289.84°)
OKLaboklab(29.19% -0.0059 -0.0877)
OKLCHoklch(29.19% 0.088 266.1)
XYZxyz(2.8318, 2.3876, 9.3266)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172857 #574617
analogous
#174857 #172857 #261757
triadic
#172857 #571728 #285717
tetradic
#172857 #571748 #574617 #175726
square
#172857 #571748 #574617 #175726
split-complementary
#172857 #572617 #485717
monochromatic
#060B18 #0A1227 #172857 #243E87 #3155B8

Accessibility & contrast

On white

14.21
#172857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172857
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172857#FFFFFF#000000##FFFFFF
##1728571.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2E59
Deuteranopia (green-blind)
#002856
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172857;
/* rgb */ color: rgb(23, 40, 87);
/* oklch */ color: oklch(29.2% 0.088 266.1);
Tailwind
colors: {
  custom: {
    50: '#5d6187',
    500: '#172857',
    950: '#000000',
  },
}
SCSS
$custom: #172857;
$custom-light: #5d6187;
$custom-dark: #000000;
JSON
{
  "hex": "#172857",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 87
  },
  "hsl": {
    "h": 224.063,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29189,
    "c": 0.08791,
    "h": 266.1
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#172857
secondary
#8E783C
accent
#B846E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #172857

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

Preview Lab → · Contrast checker → · Palette generator →

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