#172081#172081

#172081 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.159 H 269.5°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#172081
RGBrgb(23, 32, 129)
HSLhsl(235, 70%, 30%)
HSVhsv(235, 82%, 51%)
CMYKcmyk(82.2%, 75.2%, 0%, 49.4%)
CIE-LABlab(19.22, 33.39, -54.92)
CIE-LCHlch(19.22, 64.27, 301.30°)
OKLaboklab(31.75% -0.0014 -0.1591)
OKLCHoklch(31.75% 0.159 269.5)
XYZxyz(4.8310, 2.7996, 21.0504)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172081 #817817
analogous
#175581 #172081 #431781
triadic
#172081 #811720 #208117
tetradic
#172081 #811755 #817817 #178143
square
#172081 #811755 #817817 #178143
split-complementary
#172081 #814317 #558117
monochromatic
#05061A #0E134D #172081 #202DB5 #3745DB

Accessibility & contrast

On white

13.46
#172081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172081
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172081#FFFFFF#000000##FFFFFF
##1720811.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172081;
/* rgb */ color: rgb(23, 32, 129);
/* oklch */ color: oklch(31.8% 0.159 269.5);
Tailwind
colors: {
  custom: {
    50: '#695ca7',
    500: '#172081',
    950: '#000000',
  },
}
SCSS
$custom: #172081;
$custom-light: #695ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#172081",
  "rgb": {
    "r": 23,
    "g": 32,
    "b": 129
  },
  "hsl": {
    "h": 234.906,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3175,
    "c": 0.1591,
    "h": 269.5
  },
  "luminance": 0.028
}

Semantic roles & 50–950 ramp

primary
#172081
secondary
#B5AB3E
accent
#DD3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #172081

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

Preview Lab → · Contrast checker → · Palette generator →

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