#171970#171970

#171970 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.144 H 271.8°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#171970
RGBrgb(23, 25, 112)
HSLhsl(239, 66%, 26%)
HSVhsv(239, 79%, 44%)
CMYKcmyk(79.5%, 77.7%, 0%, 56.1%)
CIE-LABlab(15.73, 31.52, -49.79)
CIE-LCHlch(15.73, 58.93, 302.34°)
OKLaboklab(28.69% 0.0044 -0.1441)
OKLCHoklch(28.69% 0.144 271.8)
XYZxyz(3.6246, 2.0469, 15.5302)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171970 #706E17
analogous
#174670 #171970 #421770
triadic
#171970 #701719 #197017
tetradic
#171970 #701746 #706E17 #177042
square
#171970 #701746 #706E17 #177042
split-complementary
#171970 #704217 #467017
monochromatic
#050619 #0D0E3D #171970 #2124A3 #2D31D4

Accessibility & contrast

On white

14.90
#171970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#171970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171970
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171970#FFFFFF#000000##FFFFFF
##1719701.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00236E
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #171970;
/* rgb */ color: rgb(23, 25, 112);
/* oklch */ color: oklch(28.7% 0.144 271.8);
Tailwind
colors: {
  custom: {
    50: '#65579a',
    500: '#171970',
    950: '#000000',
  },
}
SCSS
$custom: #171970;
$custom-light: #65579a;
$custom-dark: #000000;
JSON
{
  "hex": "#171970",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 238.652,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.28688,
    "c": 0.14419,
    "h": 271.8
  },
  "luminance": 0.02047
}

Semantic roles & 50–950 ramp

primary
#171970
secondary
#A6A33D
accent
#E53FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171970

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

Preview Lab → · Contrast checker → · Palette generator →

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