#172581#172581

#172581 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.153 H 268.6°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#172581
RGBrgb(23, 37, 129)
HSLhsl(232, 70%, 30%)
HSVhsv(232, 82%, 51%)
CMYKcmyk(82.2%, 71.3%, 0%, 49.4%)
CIE-LABlab(20.40, 30.15, -52.98)
CIE-LCHlch(20.40, 60.96, 299.65°)
OKLaboklab(32.6% -0.0036 -0.1534)
OKLCHoklch(32.6% 0.153 268.6)
XYZxyz(4.9760, 3.0897, 21.0987)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172581 #817317
analogous
#175A81 #172581 #3E1781
triadic
#172581 #811725 #258117
tetradic
#172581 #81175A #817317 #17813E
square
#172581 #81175A #817317 #17813E
split-complementary
#172581 #813E17 #5A8117
monochromatic
#05071A #0E164D #172581 #2034B5 #374DDB

Accessibility & contrast

On white

12.98
#172581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172581
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172581#FFFFFF#000000##FFFFFF
##1725811.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172581;
/* rgb */ color: rgb(23, 37, 129);
/* oklch */ color: oklch(32.6% 0.153 268.6);
Tailwind
colors: {
  custom: {
    50: '#6960a7',
    500: '#172581',
    950: '#000000',
  },
}
SCSS
$custom: #172581;
$custom-light: #6960a7;
$custom-dark: #000000;
JSON
{
  "hex": "#172581",
  "rgb": {
    "r": 23,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 232.075,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32597,
    "c": 0.15349,
    "h": 268.6
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#172581
secondary
#B5A63E
accent
#D53BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #172581

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

Preview Lab → · Contrast checker → · Palette generator →

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