#172381#172381

#172381 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.2% C 0.156 H 269.0°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#172381
RGBrgb(23, 35, 129)
HSLhsl(233, 70%, 30%)
HSVhsv(233, 82%, 51%)
CMYKcmyk(82.2%, 72.9%, 0%, 49.4%)
CIE-LABlab(19.92, 31.47, -53.77)
CIE-LCHlch(19.92, 62.30, 300.34°)
OKLaboklab(32.25% -0.0027 -0.1558)
OKLCHoklch(32.25% 0.156 269)
XYZxyz(4.9155, 2.9686, 21.0786)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172381 #817517
analogous
#175881 #172381 #401781
triadic
#172381 #811723 #238117
tetradic
#172381 #811758 #817517 #178140
square
#172381 #811758 #817517 #178140
split-complementary
#172381 #814017 #588117
monochromatic
#05071A #0E154D #172381 #2031B5 #374ADB

Accessibility & contrast

On white

13.18
#172381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172381
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172381#FFFFFF#000000##FFFFFF
##1723811.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172381;
/* rgb */ color: rgb(23, 35, 129);
/* oklch */ color: oklch(32.2% 0.156 269.0);
Tailwind
colors: {
  custom: {
    50: '#695ea7',
    500: '#172381',
    950: '#000000',
  },
}
SCSS
$custom: #172381;
$custom-light: #695ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#172381",
  "rgb": {
    "r": 23,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 233.208,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32249,
    "c": 0.15578,
    "h": 269
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#172381
secondary
#B5A83E
accent
#D83BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F

Preview Lab

Preview with #172381

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

Preview Lab → · Contrast checker → · Palette generator →

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