#171481#171481

#171481 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.170 H 270.8°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#171481
RGBrgb(23, 20, 129)
HSLhsl(242, 73%, 29%)
HSVhsv(242, 84%, 51%)
CMYKcmyk(82.2%, 84.5%, 0%, 49.4%)
CIE-LABlab(16.83, 40.24, -58.88)
CIE-LCHlch(16.83, 71.31, 304.35°)
OKLaboklab(30.06% 0.0025 -0.1704)
OKLCHoklch(30.06% 0.17 270.8)
XYZxyz(4.5646, 2.2669, 20.9616)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171481 #7E8114
analogous
#144881 #171481 #4E1481
triadic
#171481 #811714 #148117
tetradic
#171481 #811448 #7E8114 #14814E
square
#171481 #811448 #7E8114 #14814E
split-complementary
#171481 #814E14 #488114
monochromatic
#05041A #0E0C4C #171481 #201CB6 #3530DF

Accessibility & contrast

On white

14.45
#171481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171481
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171481#FFFFFF#000000##FFFFFF
##1714811.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00247F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171481;
/* rgb */ color: rgb(23, 20, 129);
/* oklch */ color: oklch(30.1% 0.170 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a55a7',
    500: '#171481',
    950: '#000000',
  },
}
SCSS
$custom: #171481;
$custom-light: #6a55a7;
$custom-dark: #000000;
JSON
{
  "hex": "#171481",
  "rgb": {
    "r": 23,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 241.651,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30064,
    "c": 0.17044,
    "h": 270.8
  },
  "luminance": 0.02267
}

Semantic roles & 50–950 ramp

primary
#171481
secondary
#B3B63B
accent
#F038EB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171481

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

Preview Lab → · Contrast checker → · Palette generator →

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