#171271#171271

#171271 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.152 H 272.6°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#171271
RGBrgb(23, 18, 113)
HSLhsl(243, 73%, 26%)
HSVhsv(243, 84%, 44%)
CMYKcmyk(79.6%, 84.1%, 0%, 55.7%)
CIE-LABlab(14.44, 35.93, -52.58)
CIE-LCHlch(14.44, 63.68, 304.35°)
OKLaboklab(27.81% 0.007 -0.1521)
OKLCHoklch(27.81% 0.152 272.6)
XYZxyz(3.5493, 1.8066, 15.7812)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171271 #6C7112
analogous
#123C71 #171271 #461271
triadic
#171271 #711712 #127117
tetradic
#171271 #71123C #6C7112 #127146
square
#171271 #71123C #6C7112 #127146
split-complementary
#171271 #714612 #3C7112
monochromatic
#05041A #0C0A3C #171271 #221AA6 #2C23DB

Accessibility & contrast

On white

15.43
#171271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#171271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171271
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171271#FFFFFF#000000##FFFFFF
##1712711.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00206F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171271;
/* rgb */ color: rgb(23, 18, 113);
/* oklch */ color: oklch(27.8% 0.152 272.6);
Tailwind
colors: {
  custom: {
    50: '#66539b',
    500: '#171271',
    950: '#000000',
  },
}
SCSS
$custom: #171271;
$custom-light: #66539b;
$custom-dark: #000000;
JSON
{
  "hex": "#171271",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 243.158,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27814,
    "c": 0.15229,
    "h": 272.6
  },
  "luminance": 0.01807
}

Semantic roles & 50–950 ramp

primary
#171271
secondary
#A2A837
accent
#EF39E6
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #171271

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

Preview Lab → · Contrast checker → · Palette generator →

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