#171981#171981

#171981 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.166 H 270.4°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#171981
RGBrgb(23, 25, 129)
HSLhsl(239, 70%, 30%)
HSVhsv(239, 82%, 51%)
CMYKcmyk(82.2%, 80.6%, 0%, 49.4%)
CIE-LABlab(17.75, 37.57, -57.36)
CIE-LCHlch(17.75, 68.57, 303.23°)
OKLaboklab(30.7% 0.0011 -0.1661)
OKLCHoklch(30.7% 0.166 270.4)
XYZxyz(4.6621, 2.4619, 20.9941)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171981 #817F17
analogous
#174E81 #171981 #4A1781
triadic
#171981 #811719 #198117
tetradic
#171981 #81174E #817F17 #17814A
square
#171981 #81174E #817F17 #17814A
split-complementary
#171981 #814A17 #4E8117
monochromatic
#05051A #0E0F4D #171981 #2023B5 #373ADB

Accessibility & contrast

On white

14.07
#171981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#171981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171981
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171981#FFFFFF#000000##FFFFFF
##1719811.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00267F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171981;
/* rgb */ color: rgb(23, 25, 129);
/* oklch */ color: oklch(30.7% 0.166 270.4);
Tailwind
colors: {
  custom: {
    50: '#6a58a7',
    500: '#171981',
    950: '#000000',
  },
}
SCSS
$custom: #171981;
$custom-light: #6a58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#171981",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 238.868,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30702,
    "c": 0.16611,
    "h": 270.4
  },
  "luminance": 0.02462
}

Semantic roles & 50–950 ramp

primary
#171981
secondary
#B5B33E
accent
#E93BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080310
muted
#7A787F

Preview Lab

Preview with #171981

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

Preview Lab → · Contrast checker → · Palette generator →

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