#171989#171989

#171989 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.176 H 269.8°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#171989
RGBrgb(23, 25, 137)
HSLhsl(239, 71%, 31%)
HSVhsv(239, 83%, 54%)
CMYKcmyk(83.2%, 81.8%, 0%, 46.3%)
CIE-LABlab(18.73, 40.31, -60.78)
CIE-LCHlch(18.73, 72.93, 303.55°)
OKLaboklab(31.67% -0.0005 -0.176)
OKLCHoklch(31.67% 0.176 269.8)
XYZxyz(5.2148, 2.6830, 23.9051)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171989 #898717
analogous
#175289 #171989 #4E1789
triadic
#171989 #891719 #198917
tetradic
#171989 #891752 #898717 #17894E
square
#171989 #891752 #898717 #17894E
split-complementary
#171989 #894E17 #528917
monochromatic
#050620 #0E0F55 #171989 #2023BD #3C3FDE

Accessibility & contrast

On white

13.66
#171989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#171989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171989
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171989#FFFFFF#000000##FFFFFF
##1719891.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002887
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #171989;
/* rgb */ color: rgb(23, 25, 137);
/* oklch */ color: oklch(31.7% 0.176 269.8);
Tailwind
colors: {
  custom: {
    50: '#6c58ad',
    500: '#171989',
    950: '#000000',
  },
}
SCSS
$custom: #171989;
$custom-light: #6c58ad;
$custom-dark: #000000;
JSON
{
  "hex": "#171989",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 238.947,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31674,
    "c": 0.17602,
    "h": 269.8
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#171989
secondary
#BDBA3F
accent
#EB3AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171989

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

Preview Lab → · Contrast checker → · Palette generator →

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