#172181#172181

#172181 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.158 H 269.3°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#172181
RGBrgb(23, 33, 129)
HSLhsl(234, 70%, 30%)
HSVhsv(234, 82%, 51%)
CMYKcmyk(82.2%, 74.4%, 0%, 49.4%)
CIE-LABlab(19.45, 32.76, -54.54)
CIE-LCHlch(19.45, 63.62, 300.99°)
OKLaboklab(31.91% -0.0018 -0.158)
OKLCHoklch(31.91% 0.158 269.3)
XYZxyz(4.8583, 2.8543, 21.0595)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172181 #817717
analogous
#175681 #172181 #421781
triadic
#172181 #811721 #218117
tetradic
#172181 #811756 #817717 #178142
square
#172181 #811756 #817717 #178142
split-complementary
#172181 #814217 #568117
monochromatic
#05071A #0E144D #172181 #202EB5 #3747DB

Accessibility & contrast

On white

13.37
#172181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172181
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172181#FFFFFF#000000##FFFFFF
##1721811.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172181;
/* rgb */ color: rgb(23, 33, 129);
/* oklch */ color: oklch(31.9% 0.158 269.3);
Tailwind
colors: {
  custom: {
    50: '#695da7',
    500: '#172181',
    950: '#000000',
  },
}
SCSS
$custom: #172181;
$custom-light: #695da7;
$custom-dark: #000000;
JSON
{
  "hex": "#172181",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 234.34,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31913,
    "c": 0.15801,
    "h": 269.3
  },
  "luminance": 0.02855
}

Semantic roles & 50–950 ramp

primary
#172181
secondary
#B5AA3E
accent
#DC3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F

Preview Lab

Preview with #172181

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

Preview Lab → · Contrast checker → · Palette generator →

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