#172977#172977

#172977 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.135 H 267.8°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#172977
RGBrgb(23, 41, 119)
HSLhsl(229, 68%, 28%)
HSVhsv(229, 81%, 47%)
CMYKcmyk(80.7%, 65.5%, 0%, 53.3%)
CIE-LABlab(20.44, 23.49, -46.56)
CIE-LCHlch(20.44, 52.15, 296.77°)
OKLaboklab(32.32% -0.0053 -0.1347)
OKLCHoklch(32.32% 0.135 267.8)
XYZxyz(4.4749, 3.0994, 17.8116)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172977 #776517
analogous
#175977 #172977 #351777
triadic
#172977 #771729 #297717
tetradic
#172977 #771759 #776517 #177735
square
#172977 #771759 #776517 #177735
split-complementary
#172977 #773517 #597717
monochromatic
#05091A #0D1744 #172977 #213BAA #3150D7

Accessibility & contrast

On white

12.96
#172977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172977
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172977#FFFFFF#000000##FFFFFF
##1729771.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#002D76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172977;
/* rgb */ color: rgb(23, 41, 119);
/* oklch */ color: oklch(32.3% 0.135 267.8);
Tailwind
colors: {
  custom: {
    50: '#65629f',
    500: '#172977',
    950: '#000000',
  },
}
SCSS
$custom: #172977;
$custom-light: #65629f;
$custom-dark: #000000;
JSON
{
  "hex": "#172977",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 119
  },
  "hsl": {
    "h": 228.75,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32323,
    "c": 0.13476,
    "h": 267.8
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#172977
secondary
#AC973E
accent
#CA3DEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172977

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

Preview Lab → · Contrast checker → · Palette generator →

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