#172080#172080

#172080 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.158 H 269.5°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#172080
RGBrgb(23, 32, 128)
HSLhsl(235, 70%, 30%)
HSVhsv(235, 82%, 50%)
CMYKcmyk(82%, 75%, 0%, 49.8%)
CIE-LABlab(19.11, 33.02, -54.47)
CIE-LCHlch(19.11, 63.70, 301.23°)
OKLaboklab(31.64% -0.0012 -0.1578)
OKLCHoklch(31.64% 0.158 269.5)
XYZxyz(4.7648, 2.7731, 20.7020)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172080 #807717
analogous
#175580 #172080 #431780
triadic
#172080 #801720 #208017
tetradic
#172080 #801755 #807717 #178043
square
#172080 #801755 #807717 #178043
split-complementary
#172080 #804317 #558017
monochromatic
#05061A #0E134C #172080 #202DB4 #3645DB

Accessibility & contrast

On white

13.51
#172080 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172080 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172080
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172080#FFFFFF#000000##FFFFFF
##1720801.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172080;
/* rgb */ color: rgb(23, 32, 128);
/* oklch */ color: oklch(31.6% 0.158 269.5);
Tailwind
colors: {
  custom: {
    50: '#695ca6',
    500: '#172080',
    950: '#000000',
  },
}
SCSS
$custom: #172080;
$custom-light: #695ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#172080",
  "rgb": {
    "r": 23,
    "g": 32,
    "b": 128
  },
  "hsl": {
    "h": 234.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31637,
    "c": 0.15778,
    "h": 269.5
  },
  "luminance": 0.02774
}

Semantic roles & 50–950 ramp

primary
#172080
secondary
#B4AA3E
accent
#DD3BEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #172080

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

Preview Lab → · Contrast checker → · Palette generator →

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