#171261#171261

#171261 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.9% C 0.132 H 274.8°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#171261
RGBrgb(23, 18, 97)
HSLhsl(244, 69%, 23%)
HSVhsv(244, 81%, 38%)
CMYKcmyk(76.3%, 81.4%, 0%, 62%)
CIE-LABlab(12.46, 30.37, -45.32)
CIE-LCHlch(12.46, 54.55, 303.82°)
OKLaboklab(25.86% 0.0111 -0.1311)
OKLCHoklch(25.86% 0.132 274.8)
XYZxyz(2.7266, 1.4776, 11.4484)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171261 #5C6112
analogous
#123561 #171261 #3E1261
triadic
#171261 #611712 #126117
tetradic
#171261 #611235 #5C6112 #12613E
square
#171261 #611235 #5C6112 #12613E
split-complementary
#171261 #613E12 #356112
monochromatic
#06051A #0B082D #171261 #231C95 #2F25C8

Accessibility & contrast

On white

16.21
#171261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#171261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171261
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171261#FFFFFF#000000##FFFFFF
##1712611.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002463
Deuteranopia (green-blind)
#001D60
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #171261;
/* rgb */ color: rgb(23, 18, 97);
/* oklch */ color: oklch(25.9% 0.132 274.8);
Tailwind
colors: {
  custom: {
    50: '#62518f',
    500: '#171261',
    950: '#000000',
  },
}
SCSS
$custom: #171261;
$custom-light: #62518f;
$custom-dark: #000000;
JSON
{
  "hex": "#171261",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 243.797,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.25857,
    "c": 0.13153,
    "h": 274.8
  },
  "luminance": 0.01478
}

Semantic roles & 50–950 ramp

primary
#171261
secondary
#939936
accent
#EC3CE0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #171261

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

Preview Lab → · Contrast checker → · Palette generator →

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