#171561#171561

#171561 is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.3% C 0.128 H 274.2°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#171561
RGBrgb(23, 21, 97)
HSLhsl(242, 64%, 23%)
HSVhsv(242, 78%, 38%)
CMYKcmyk(76.3%, 78.4%, 0%, 62%)
CIE-LABlab(13.12, 28.53, -44.24)
CIE-LCHlch(13.12, 52.64, 302.81°)
OKLaboklab(26.32% 0.0095 -0.128)
OKLCHoklch(26.32% 0.128 274.2)
XYZxyz(2.7785, 1.5813, 11.4657)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171561 #5F6115
analogous
#153961 #171561 #3D1561
triadic
#171561 #611715 #156117
tetradic
#171561 #611539 #5F6115 #15613D
square
#171561 #611539 #5F6115 #15613D
split-complementary
#171561 #613D15 #396115
monochromatic
#060519 #0B0A2F #171561 #232093 #2F2BC6

Accessibility & contrast

On white

15.95
#171561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#171561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171561
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171561#FFFFFF#000000##FFFFFF
##1715611.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002563
Deuteranopia (green-blind)
#001E60
Tritanopia (blue-blind)
#002B39
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171561;
/* rgb */ color: rgb(23, 21, 97);
/* oklch */ color: oklch(26.3% 0.128 274.2);
Tailwind
colors: {
  custom: {
    50: '#61538f',
    500: '#171561',
    950: '#000000',
  },
}
SCSS
$custom: #171561;
$custom-light: #61538f;
$custom-dark: #000000;
JSON
{
  "hex": "#171561",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 241.579,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.26317,
    "c": 0.12831,
    "h": 274.2
  },
  "luminance": 0.01582
}

Semantic roles & 50–950 ramp

primary
#171561
secondary
#96983A
accent
#E740E3
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #171561

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

Preview Lab → · Contrast checker → · Palette generator →

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