#172855#172855

#172855 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.085 H 265.8°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#172855
RGBrgb(23, 40, 85)
HSLhsl(224, 57%, 21%)
HSVhsv(224, 73%, 33%)
CMYKcmyk(72.9%, 52.9%, 0%, 66.7%)
CIE-LABlab(17.25, 10.20, -29.47)
CIE-LCHlch(17.25, 31.19, 289.08°)
OKLaboklab(29.03% -0.0062 -0.0845)
OKLCHoklch(29.03% 0.085 265.8)
XYZxyz(2.7513, 2.3554, 8.9022)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172855 #554417
analogous
#174755 #172855 #251755
triadic
#172855 #551728 #285517
tetradic
#172855 #551747 #554417 #175525
square
#172855 #551747 #554417 #175525
split-complementary
#172855 #552517 #475517
monochromatic
#070B18 #0A1125 #172855 #243F85 #3155B5

Accessibility & contrast

On white

14.27
#172855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#172855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172855
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172855#FFFFFF#000000##FFFFFF
##1728551.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102D57
Deuteranopia (green-blind)
#022854
Tritanopia (blue-blind)
#00323A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172855;
/* rgb */ color: rgb(23, 40, 85);
/* oklch */ color: oklch(29.0% 0.085 265.8);
Tailwind
colors: {
  custom: {
    50: '#5c6185',
    500: '#172855',
    950: '#000000',
  },
}
SCSS
$custom: #172855;
$custom-light: #5c6185;
$custom-dark: #000000;
JSON
{
  "hex": "#172855",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 85
  },
  "hsl": {
    "h": 223.548,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29026,
    "c": 0.08471,
    "h": 265.8
  },
  "luminance": 0.02356
}

Semantic roles & 50–950 ramp

primary
#172855
secondary
#8C763C
accent
#B747E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172855

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

Preview Lab → · Contrast checker → · Palette generator →

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