#171855#171855

#171855 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.108 H 275.0°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#171855
RGBrgb(23, 24, 85)
HSLhsl(239, 57%, 21%)
HSVhsv(239, 73%, 33%)
CMYKcmyk(72.9%, 71.8%, 0%, 66.7%)
CIE-LABlab(12.55, 21.95, -37.11)
CIE-LCHlch(12.55, 43.12, 300.61°)
OKLaboklab(25.52% 0.0093 -0.1071)
OKLCHoklch(25.52% 0.108 275)
XYZxyz(2.3191, 1.4911, 8.7582)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171855 #555417
analogous
#173755 #171855 #351755
triadic
#171855 #551718 #185517
tetradic
#171855 #551737 #555417 #175535
square
#171855 #551737 #555417 #175535
split-complementary
#171855 #553517 #375517
monochromatic
#070718 #0A0A25 #171855 #242685 #3133B5

Accessibility & contrast

On white

16.18
#171855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#171855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171855
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171855#FFFFFF#000000##FFFFFF
##1718551.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#001E54
Tritanopia (blue-blind)
#002834
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171855;
/* rgb */ color: rgb(23, 24, 85);
/* oklch */ color: oklch(25.5% 0.108 275.0);
Tailwind
colors: {
  custom: {
    50: '#5e5586',
    500: '#171855',
    950: '#000000',
  },
}
SCSS
$custom: #171855;
$custom-light: #5e5586;
$custom-dark: #000000;
JSON
{
  "hex": "#171855",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 239.032,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25519,
    "c": 0.10752,
    "h": 275
  },
  "luminance": 0.01491
}

Semantic roles & 50–950 ramp

primary
#171855
secondary
#8C8B3C
accent
#DE47E1
background
#F5F4F8
surface
#EAE8EF
border
#C6C4CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #171855

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

Preview Lab → · Contrast checker → · Palette generator →

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