#171858#171858

#171858 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.8% C 0.112 H 274.6°. Best body text is #FFFFFF at 16.06:1 contrast (WCAG AA passes).

Color values

HEX#171858
RGBrgb(23, 24, 88)
HSLhsl(239, 59%, 22%)
HSVhsv(239, 74%, 35%)
CMYKcmyk(73.9%, 72.7%, 0%, 65.5%)
CIE-LABlab(12.86, 23.12, -38.63)
CIE-LCHlch(12.86, 45.03, 300.90°)
OKLaboklab(25.84% 0.0089 -0.1116)
OKLCHoklch(25.84% 0.112 274.6)
XYZxyz(2.4409, 1.5398, 9.3992)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171858 #585717
analogous
#173958 #171858 #371758
triadic
#171858 #581718 #185817
tetradic
#171858 #581739 #585717 #175837
square
#171858 #581739 #585717 #175837
split-complementary
#171858 #583717 #395817
monochromatic
#060718 #0A0B27 #171858 #242589 #3032B9

Accessibility & contrast

On white

16.06
#171858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171858
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171858#FFFFFF#000000##FFFFFF
##1718581.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#001E57
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171858;
/* rgb */ color: rgb(23, 24, 88);
/* oklch */ color: oklch(25.8% 0.112 274.6);
Tailwind
colors: {
  custom: {
    50: '#5f5588',
    500: '#171858',
    950: '#000000',
  },
}
SCSS
$custom: #171858;
$custom-light: #5f5588;
$custom-dark: #000000;
JSON
{
  "hex": "#171858",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 239.077,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.25836,
    "c": 0.11195,
    "h": 274.6
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#171858
secondary
#8F8E3C
accent
#DF46E2
background
#F5F4F8
surface
#EAE8F0
border
#C6C4CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171858

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

Preview Lab → · Contrast checker → · Palette generator →

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