#171977#171977

#171977 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.153 H 271.2°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#171977
RGBrgb(23, 25, 119)
HSLhsl(239, 68%, 28%)
HSVhsv(239, 81%, 47%)
CMYKcmyk(80.7%, 79%, 0%, 53.3%)
CIE-LABlab(16.55, 34.05, -52.96)
CIE-LCHlch(16.55, 62.96, 302.74°)
OKLaboklab(29.51% 0.0031 -0.1533)
OKLCHoklch(29.51% 0.153 271.2)
XYZxyz(4.0296, 2.2089, 17.6632)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171977 #777517
analogous
#174977 #171977 #451777
triadic
#171977 #771719 #197717
tetradic
#171977 #771749 #777517 #177745
square
#171977 #771749 #777517 #177745
split-complementary
#171977 #774517 #497717
monochromatic
#05051A #0D0E44 #171977 #2124AA #3135D7

Accessibility & contrast

On white

14.57
#171977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#171977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171977
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171977#FFFFFF#000000##FFFFFF
##1719771.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002475
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #171977;
/* rgb */ color: rgb(23, 25, 119);
/* oklch */ color: oklch(29.5% 0.153 271.2);
Tailwind
colors: {
  custom: {
    50: '#67579f',
    500: '#171977',
    950: '#000000',
  },
}
SCSS
$custom: #171977;
$custom-light: #67579f;
$custom-dark: #000000;
JSON
{
  "hex": "#171977",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 238.75,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29508,
    "c": 0.15338,
    "h": 271.2
  },
  "luminance": 0.02209
}

Semantic roles & 50–950 ramp

primary
#171977
secondary
#ACAA3E
accent
#E73DEA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171977

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

Preview Lab → · Contrast checker → · Palette generator →

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