#172881#172881

#172881 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.150 H 268.0°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#172881
RGBrgb(23, 40, 129)
HSLhsl(230, 70%, 30%)
HSVhsv(230, 82%, 51%)
CMYKcmyk(82.2%, 69%, 0%, 49.4%)
CIE-LABlab(21.15, 28.14, -51.75)
CIE-LCHlch(21.15, 58.90, 298.54°)
OKLaboklab(33.14% -0.0052 -0.1498)
OKLCHoklch(33.14% 0.15 268)
XYZxyz(5.0732, 3.2841, 21.1311)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172881 #817017
analogous
#175D81 #172881 #3B1781
triadic
#172881 #811728 #288117
tetradic
#172881 #81175D #817017 #17813B
square
#172881 #81175D #817017 #17813B
split-complementary
#172881 #813B17 #5D8117
monochromatic
#05081A #0E184D #172881 #2038B5 #3751DB

Accessibility & contrast

On white

12.67
#172881 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#172881 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172881
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172881#FFFFFF#000000##FFFFFF
##1728811.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172881;
/* rgb */ color: rgb(23, 40, 129);
/* oklch */ color: oklch(33.1% 0.150 268.0);
Tailwind
colors: {
  custom: {
    50: '#6862a7',
    500: '#172881',
    950: '#000000',
  },
}
SCSS
$custom: #172881;
$custom-light: #6862a7;
$custom-dark: #000000;
JSON
{
  "hex": "#172881",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 129
  },
  "hsl": {
    "h": 230.377,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33141,
    "c": 0.14993,
    "h": 268
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#172881
secondary
#B5A23E
accent
#D03BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172881

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

Preview Lab → · Contrast checker → · Palette generator →

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