#171381#171381

#171381 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.171 H 270.9°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#171381
RGBrgb(23, 19, 129)
HSLhsl(242, 74%, 29%)
HSVhsv(242, 85%, 51%)
CMYKcmyk(82.2%, 85.3%, 0%, 49.4%)
CIE-LABlab(16.66, 40.73, -59.16)
CIE-LCHlch(16.66, 71.82, 304.55°)
OKLaboklab(29.95% 0.0027 -0.1712)
OKLCHoklch(29.95% 0.171 270.9)
XYZxyz(4.5473, 2.2324, 20.9558)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171381 #7D8113
analogous
#134681 #171381 #4E1381
triadic
#171381 #811713 #138117
tetradic
#171381 #811346 #7D8113 #13814E
square
#171381 #811346 #7D8113 #13814E
split-complementary
#171381 #814E13 #468113
monochromatic
#05041B #0D0B4C #171381 #211BB6 #352EE0

Accessibility & contrast

On white

14.52
#171381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171381
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171381#FFFFFF#000000##FFFFFF
##1713811.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00237F
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171381;
/* rgb */ color: rgb(23, 19, 129);
/* oklch */ color: oklch(29.9% 0.171 270.9);
Tailwind
colors: {
  custom: {
    50: '#6b54a7',
    500: '#171381',
    950: '#000000',
  },
}
SCSS
$custom: #171381;
$custom-light: #6b54a7;
$custom-dark: #000000;
JSON
{
  "hex": "#171381",
  "rgb": {
    "r": 23,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 242.182,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.29947,
    "c": 0.17123,
    "h": 270.9
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#171381
secondary
#B2B63A
accent
#F137EA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171381

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

Preview Lab → · Contrast checker → · Palette generator →

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