#172980#172980

#172980 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.2% C 0.147 H 267.8°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#172980
RGBrgb(23, 41, 128)
HSLhsl(230, 70%, 30%)
HSVhsv(230, 82%, 50%)
CMYKcmyk(82%, 68%, 0%, 49.8%)
CIE-LABlab(21.30, 27.06, -50.86)
CIE-LCHlch(21.30, 57.61, 298.02°)
OKLaboklab(33.23% -0.0056 -0.1472)
OKLCHoklch(33.23% 0.147 267.8)
XYZxyz(5.0412, 3.3260, 20.7942)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172980 #806E17
analogous
#175E80 #172980 #391780
triadic
#172980 #801729 #298017
tetradic
#172980 #80175E #806E17 #178039
square
#172980 #80175E #806E17 #178039
split-complementary
#172980 #803917 #5E8017
monochromatic
#05081A #0E184C #172980 #203AB4 #3653DB

Accessibility & contrast

On white

12.61
#172980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172980
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172980#FFFFFF#000000##FFFFFF
##1729801.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.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: #172980;
/* rgb */ color: rgb(23, 41, 128);
/* oklch */ color: oklch(33.2% 0.147 267.8);
Tailwind
colors: {
  custom: {
    50: '#6862a6',
    500: '#172980',
    950: '#000000',
  },
}
SCSS
$custom: #172980;
$custom-light: #6862a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172980",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 128
  },
  "hsl": {
    "h": 229.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33226,
    "c": 0.14735,
    "h": 267.8
  },
  "luminance": 0.03327
}

Semantic roles & 50–950 ramp

primary
#172980
secondary
#B4A03E
accent
#CE3BEC
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172980

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

Preview Lab → · Contrast checker → · Palette generator →

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