#172155#172155

#172155 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.095 H 270.6°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#172155
RGBrgb(23, 33, 85)
HSLhsl(230, 57%, 21%)
HSVhsv(230, 73%, 33%)
CMYKcmyk(72.9%, 61.2%, 0%, 66.7%)
CIE-LABlab(15.09, 15.40, -32.97)
CIE-LCHlch(15.09, 36.38, 295.04°)
OKLaboklab(27.39% 0.001 -0.0949)
OKLCHoklch(27.39% 0.095 270.6)
XYZxyz(2.5363, 1.9255, 8.8306)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172155 #554B17
analogous
#174055 #172155 #2C1755
triadic
#172155 #551721 #215517
tetradic
#172155 #551740 #554B17 #17552C
square
#172155 #551740 #554B17 #17552C
split-complementary
#172155 #552C17 #405517
monochromatic
#070918 #0A0E25 #172155 #243485 #3146B5

Accessibility & contrast

On white

15.16
#172155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#172155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172155
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172155#FFFFFF#000000##FFFFFF
##1721551.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #172155;
/* rgb */ color: rgb(23, 33, 85);
/* oklch */ color: oklch(27.4% 0.095 270.6);
Tailwind
colors: {
  custom: {
    50: '#5d5b85',
    500: '#172155',
    950: '#000000',
  },
}
SCSS
$custom: #172155;
$custom-light: #5d5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#172155",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 230.323,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27393,
    "c": 0.09488,
    "h": 270.6
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#172155
secondary
#8C7F3C
accent
#C847E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #172155

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

Preview Lab → · Contrast checker → · Palette generator →

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