#171850#171850

#171850 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.0% C 0.100 H 275.6°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#171850
RGBrgb(23, 24, 80)
HSLhsl(239, 55%, 20%)
HSVhsv(239, 71%, 31%)
CMYKcmyk(71.2%, 70%, 0%, 68.6%)
CIE-LABlab(12.05, 19.99, -34.51)
CIE-LCHlch(12.05, 39.89, 300.08°)
OKLaboklab(25% 0.0098 -0.0995)
OKLCHoklch(25% 0.1 275.6)
XYZxyz(2.1275, 1.4144, 7.7488)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171850 #504F17
analogous
#173550 #171850 #321750
triadic
#171850 #501718 #185017
tetradic
#171850 #501735 #504F17 #175032
square
#171850 #501735 #504F17 #175032
split-complementary
#171850 #503217 #355017
monochromatic
#070718 #090A20 #171850 #252680 #3235AF

Accessibility & contrast

On white

16.37
#171850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#171850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171850
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171850#FFFFFF#000000##FFFFFF
##1718501.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#001D4F
Tritanopia (blue-blind)
#002631
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171850;
/* rgb */ color: rgb(23, 24, 80);
/* oklch */ color: oklch(25.0% 0.100 275.6);
Tailwind
colors: {
  custom: {
    50: '#5d5582',
    500: '#171850',
    950: '#000000',
  },
}
SCSS
$custom: #171850;
$custom-light: #5d5582;
$custom-dark: #000000;
JSON
{
  "hex": "#171850",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 238.947,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25002,
    "c": 0.09999,
    "h": 275.6
  },
  "luminance": 0.01415
}

Semantic roles & 50–950 ramp

primary
#171850
secondary
#87863C
accent
#DC49DF
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05030A
muted
#79787C

Preview Lab

Preview with #171850

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

Preview Lab → · Contrast checker → · Palette generator →

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