#171881#171881

#171881 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.167 H 270.5°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#171881
RGBrgb(23, 24, 129)
HSLhsl(239, 70%, 30%)
HSVhsv(239, 82%, 51%)
CMYKcmyk(82.2%, 81.4%, 0%, 49.4%)
CIE-LABlab(17.55, 38.13, -57.68)
CIE-LCHlch(17.55, 69.14, 303.47°)
OKLaboklab(30.57% 0.0014 -0.167)
OKLCHoklch(30.57% 0.167 270.5)
XYZxyz(4.6411, 2.4199, 20.9871)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171881 #818017
analogous
#174D81 #171881 #4B1781
triadic
#171881 #811718 #188117
tetradic
#171881 #81174D #818017 #17814B
square
#171881 #81174D #818017 #17814B
split-complementary
#171881 #814B17 #4D8117
monochromatic
#05051A #0E0E4D #171881 #2022B5 #3739DB

Accessibility & contrast

On white

14.15
#171881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#171881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171881
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171881#FFFFFF#000000##FFFFFF
##1718811.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00267F
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171881;
/* rgb */ color: rgb(23, 24, 129);
/* oklch */ color: oklch(30.6% 0.167 270.5);
Tailwind
colors: {
  custom: {
    50: '#6a57a7',
    500: '#171881',
    950: '#000000',
  },
}
SCSS
$custom: #171881;
$custom-light: #6a57a7;
$custom-dark: #000000;
JSON
{
  "hex": "#171881",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 129
  },
  "hsl": {
    "h": 239.434,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30567,
    "c": 0.16704,
    "h": 270.5
  },
  "luminance": 0.0242
}

Semantic roles & 50–950 ramp

primary
#171881
secondary
#B5B43E
accent
#EB3BED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #171881

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

Preview Lab → · Contrast checker → · Palette generator →

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