#171980#171980

#171980 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.165 H 270.5°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#171980
RGBrgb(23, 25, 128)
HSLhsl(239, 70%, 30%)
HSVhsv(239, 82%, 50%)
CMYKcmyk(82%, 80.5%, 0%, 49.8%)
CIE-LABlab(17.62, 37.23, -56.93)
CIE-LCHlch(17.62, 68.02, 303.18°)
OKLaboklab(30.58% 0.0013 -0.1649)
OKLCHoklch(30.58% 0.165 270.5)
XYZxyz(4.5959, 2.4354, 20.6457)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171980 #807E17
analogous
#174E80 #171980 #4A1780
triadic
#171980 #801719 #198017
tetradic
#171980 #80174E #807E17 #17804A
square
#171980 #80174E #807E17 #17804A
split-complementary
#171980 #804A17 #4E8017
monochromatic
#05051A #0E0F4C #171980 #2023B4 #363ADB

Accessibility & contrast

On white

14.12
#171980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#171980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171980
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171980#FFFFFF#000000##FFFFFF
##1719801.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00267E
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171980;
/* rgb */ color: rgb(23, 25, 128);
/* oklch */ color: oklch(30.6% 0.165 270.5);
Tailwind
colors: {
  custom: {
    50: '#6a58a6',
    500: '#171980',
    950: '#000000',
  },
}
SCSS
$custom: #171980;
$custom-light: #6a58a6;
$custom-dark: #000000;
JSON
{
  "hex": "#171980",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 238.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30582,
    "c": 0.16487,
    "h": 270.5
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#171980
secondary
#B4B23E
accent
#E93BEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #171980

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

Preview Lab → · Contrast checker → · Palette generator →

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