#172981#172981

#172981 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.149 H 267.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#172981
RGBrgb(23, 41, 129)
HSLhsl(230, 70%, 30%)
HSVhsv(230, 82%, 51%)
CMYKcmyk(82.2%, 68.2%, 0%, 49.4%)
CIE-LABlab(21.40, 27.46, -51.33)
CIE-LCHlch(21.40, 58.21, 298.15°)
OKLaboklab(33.33% -0.0057 -0.1486)
OKLCHoklch(33.33% 0.149 267.8)
XYZxyz(5.1074, 3.3524, 21.1425)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172981 #816F17
analogous
#175E81 #172981 #3A1781
triadic
#172981 #811729 #298117
tetradic
#172981 #81175E #816F17 #17813A
square
#172981 #81175E #816F17 #17813A
split-complementary
#172981 #813A17 #5E8117
monochromatic
#05081A #0E184D #172981 #203AB5 #3753DB

Accessibility & contrast

On white

12.57
#172981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#172981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172981
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172981#FFFFFF#000000##FFFFFF
##1729811.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172981;
/* rgb */ color: rgb(23, 41, 129);
/* oklch */ color: oklch(33.3% 0.149 267.8);
Tailwind
colors: {
  custom: {
    50: '#6862a6',
    500: '#172981',
    950: '#000000',
  },
}
SCSS
$custom: #172981;
$custom-light: #6862a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172981",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 129
  },
  "hsl": {
    "h": 229.811,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33328,
    "c": 0.14872,
    "h": 267.8
  },
  "luminance": 0.03353
}

Semantic roles & 50–950 ramp

primary
#172981
secondary
#B5A13E
accent
#CE3BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172981

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

Preview Lab → · Contrast checker → · Palette generator →

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