#172781#172781

#172781 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.151 H 268.2°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#172781
RGBrgb(23, 39, 129)
HSLhsl(231, 70%, 30%)
HSVhsv(231, 82%, 51%)
CMYKcmyk(82.2%, 69.8%, 0%, 49.4%)
CIE-LABlab(20.90, 28.81, -52.16)
CIE-LCHlch(20.90, 59.59, 298.92°)
OKLaboklab(32.96% -0.0046 -0.1511)
OKLCHoklch(32.96% 0.151 268.2)
XYZxyz(5.0399, 3.2176, 21.1201)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172781 #817117
analogous
#175C81 #172781 #3C1781
triadic
#172781 #811727 #278117
tetradic
#172781 #81175C #817117 #17813C
square
#172781 #81175C #817117 #17813C
split-complementary
#172781 #813C17 #5C8117
monochromatic
#05081A #0E174D #172781 #2037B5 #3750DB

Accessibility & contrast

On white

12.78
#172781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#172781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172781
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172781#FFFFFF#000000##FFFFFF
##1727811.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172781;
/* rgb */ color: rgb(23, 39, 129);
/* oklch */ color: oklch(33.0% 0.151 268.2);
Tailwind
colors: {
  custom: {
    50: '#6861a7',
    500: '#172781',
    950: '#000000',
  },
}
SCSS
$custom: #172781;
$custom-light: #6861a7;
$custom-dark: #000000;
JSON
{
  "hex": "#172781",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 230.943,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32957,
    "c": 0.15113,
    "h": 268.2
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#172781
secondary
#B5A33E
accent
#D23BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172781

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

Preview Lab → · Contrast checker → · Palette generator →

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