#172780#172780

#172780 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.150 H 268.3°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#172780
RGBrgb(23, 39, 128)
HSLhsl(231, 70%, 30%)
HSVhsv(231, 82%, 50%)
CMYKcmyk(82%, 69.5%, 0%, 49.8%)
CIE-LABlab(20.79, 28.43, -51.70)
CIE-LCHlch(20.79, 59.00, 298.81°)
OKLaboklab(32.85% -0.0046 -0.1497)
OKLCHoklch(32.85% 0.15 268.3)
XYZxyz(4.9738, 3.1911, 20.7717)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172780 #807017
analogous
#175C80 #172780 #3C1780
triadic
#172780 #801727 #278017
tetradic
#172780 #80175C #807017 #17803C
square
#172780 #80175C #807017 #17803C
split-complementary
#172780 #803C17 #5C8017
monochromatic
#05081A #0E174C #172780 #2037B4 #3650DB

Accessibility & contrast

On white

12.82
#172780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172780
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172780#FFFFFF#000000##FFFFFF
##1727801.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172780;
/* rgb */ color: rgb(23, 39, 128);
/* oklch */ color: oklch(32.9% 0.150 268.3);
Tailwind
colors: {
  custom: {
    50: '#6861a6',
    500: '#172780',
    950: '#000000',
  },
}
SCSS
$custom: #172780;
$custom-light: #6861a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172780",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 128
  },
  "hsl": {
    "h": 230.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32853,
    "c": 0.14977,
    "h": 268.3
  },
  "luminance": 0.03192
}

Semantic roles & 50–950 ramp

primary
#172780
secondary
#B4A23E
accent
#D13BEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172780

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

Preview Lab → · Contrast checker → · Palette generator →

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