#171958#171958

#171958 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.0% C 0.111 H 274.2°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#171958
RGBrgb(23, 25, 88)
HSLhsl(238, 59%, 22%)
HSVhsv(238, 74%, 35%)
CMYKcmyk(73.9%, 71.6%, 0%, 65.5%)
CIE-LABlab(13.12, 22.42, -38.21)
CIE-LCHlch(13.12, 44.30, 300.41°)
OKLaboklab(26.03% 0.0081 -0.1103)
OKLCHoklch(26.03% 0.111 274.2)
XYZxyz(2.4618, 1.5818, 9.4062)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171958 #585617
analogous
#173A58 #171958 #361758
triadic
#171958 #581719 #195817
tetradic
#171958 #58173A #585617 #175836
square
#171958 #58173A #585617 #175836
split-complementary
#171958 #583617 #3A5817
monochromatic
#060718 #0A0B27 #171958 #242789 #3035B9

Accessibility & contrast

On white

15.95
#171958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171958
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171958#FFFFFF#000000##FFFFFF
##1719581.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#001F57
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171958;
/* rgb */ color: rgb(23, 25, 88);
/* oklch */ color: oklch(26.0% 0.111 274.2);
Tailwind
colors: {
  custom: {
    50: '#5f5688',
    500: '#171958',
    950: '#000000',
  },
}
SCSS
$custom: #171958;
$custom-light: #5f5688;
$custom-dark: #000000;
JSON
{
  "hex": "#171958",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 238.154,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26025,
    "c": 0.11064,
    "h": 274.2
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#171958
secondary
#8F8C3C
accent
#DD46E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #171958

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

Preview Lab → · Contrast checker → · Palette generator →

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