#171281#171281

#171281 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.172 H 271.0°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#171281
RGBrgb(23, 18, 129)
HSLhsl(243, 76%, 29%)
HSVhsv(243, 86%, 51%)
CMYKcmyk(82.2%, 86%, 0%, 49.4%)
CIE-LABlab(16.50, 41.21, -59.43)
CIE-LCHlch(16.50, 72.32, 304.74°)
OKLaboklab(29.84% 0.003 -0.172)
OKLCHoklch(29.84% 0.172 271)
XYZxyz(4.5308, 2.1992, 20.9503)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171281 #7C8112
analogous
#124581 #171281 #4F1281
triadic
#171281 #811712 #128117
tetradic
#171281 #811245 #7C8112 #12814F
square
#171281 #811245 #7C8112 #12814F
split-complementary
#171281 #814F12 #458112
monochromatic
#05041B #0D0B4B #171281 #2119B7 #342CE2

Accessibility & contrast

On white

14.58
#171281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171281
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171281#FFFFFF#000000##FFFFFF
##1712811.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171281;
/* rgb */ color: rgb(23, 18, 129);
/* oklch */ color: oklch(29.8% 0.172 271.0);
Tailwind
colors: {
  custom: {
    50: '#6b54a7',
    500: '#171281',
    950: '#000000',
  },
}
SCSS
$custom: #171281;
$custom-light: #6b54a7;
$custom-dark: #000000;
JSON
{
  "hex": "#171281",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 242.703,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.29835,
    "c": 0.172,
    "h": 271
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

primary
#171281
secondary
#B1B738
accent
#F236EA
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171281

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

Preview Lab → · Contrast checker → · Palette generator →

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