#172180#172180

#172180 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.157 H 269.4°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#172180
RGBrgb(23, 33, 128)
HSLhsl(234, 70%, 30%)
HSVhsv(234, 82%, 50%)
CMYKcmyk(82%, 74.2%, 0%, 49.8%)
CIE-LABlab(19.34, 32.38, -54.09)
CIE-LCHlch(19.34, 63.04, 300.91°)
OKLaboklab(31.8% -0.0017 -0.1567)
OKLCHoklch(31.8% 0.157 269.4)
XYZxyz(4.7922, 2.8278, 20.7112)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172180 #807617
analogous
#175580 #172180 #421780
triadic
#172180 #801721 #218017
tetradic
#172180 #801755 #807617 #178042
square
#172180 #801755 #807617 #178042
split-complementary
#172180 #804217 #558017
monochromatic
#05071A #0E144C #172180 #202EB4 #3646DB

Accessibility & contrast

On white

13.41
#172180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172180
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172180#FFFFFF#000000##FFFFFF
##1721801.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172180;
/* rgb */ color: rgb(23, 33, 128);
/* oklch */ color: oklch(31.8% 0.157 269.4);
Tailwind
colors: {
  custom: {
    50: '#695da6',
    500: '#172180',
    950: '#000000',
  },
}
SCSS
$custom: #172180;
$custom-light: #695da6;
$custom-dark: #000000;
JSON
{
  "hex": "#172180",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 234.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31801,
    "c": 0.15669,
    "h": 269.4
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#172180
secondary
#B4A93E
accent
#DB3BEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #172180

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

Preview Lab → · Contrast checker → · Palette generator →

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