#172880#172880

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

Color values

HEX#172880
RGBrgb(23, 40, 128)
HSLhsl(230, 70%, 30%)
HSVhsv(230, 82%, 50%)
CMYKcmyk(82%, 68.8%, 0%, 49.8%)
CIE-LABlab(21.05, 27.75, -51.28)
CIE-LCHlch(21.05, 58.30, 298.42°)
OKLaboklab(33.04% -0.0051 -0.1485)
OKLCHoklch(33.04% 0.149 268)
XYZxyz(5.0071, 3.2577, 20.7828)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172880 #806F17
analogous
#175C80 #172880 #3B1780
triadic
#172880 #801728 #288017
tetradic
#172880 #80175C #806F17 #17803B
square
#172880 #80175C #806F17 #17803B
split-complementary
#172880 #803B17 #5C8017
monochromatic
#05081A #0E184C #172880 #2038B4 #3651DB

Accessibility & contrast

On white

12.71
#172880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#172880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172880
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172880#FFFFFF#000000##FFFFFF
##1728801.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003883
Deuteranopia (green-blind)
#002E7E
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172880;
/* rgb */ color: rgb(23, 40, 128);
/* oklch */ color: oklch(33.0% 0.149 268.0);
Tailwind
colors: {
  custom: {
    50: '#6862a6',
    500: '#172880',
    950: '#000000',
  },
}
SCSS
$custom: #172880;
$custom-light: #6862a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172880",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 128
  },
  "hsl": {
    "h": 230.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33038,
    "c": 0.14857,
    "h": 268
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#172880
secondary
#B4A13E
accent
#D03BEC
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172880

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

Preview Lab → · Contrast checker → · Palette generator →

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