#172777#172777

#172777 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.137 H 268.3°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#172777
RGBrgb(23, 39, 119)
HSLhsl(230, 68%, 28%)
HSVhsv(230, 81%, 47%)
CMYKcmyk(80.7%, 67.2%, 0%, 53.3%)
CIE-LABlab(19.90, 24.89, -47.44)
CIE-LCHlch(19.90, 53.57, 297.68°)
OKLaboklab(31.93% -0.004 -0.1372)
OKLCHoklch(31.93% 0.137 268.3)
XYZxyz(4.4075, 2.9646, 17.7891)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172777 #776717
analogous
#175777 #172777 #371777
triadic
#172777 #771727 #277717
tetradic
#172777 #771757 #776717 #177737
square
#172777 #771757 #776717 #177737
split-complementary
#172777 #773717 #577717
monochromatic
#05081A #0D1644 #172777 #2138AA #314DD7

Accessibility & contrast

On white

13.18
#172777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172777
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172777#FFFFFF#000000##FFFFFF
##1727771.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#003C4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172777;
/* rgb */ color: rgb(23, 39, 119);
/* oklch */ color: oklch(31.9% 0.137 268.3);
Tailwind
colors: {
  custom: {
    50: '#66619f',
    500: '#172777',
    950: '#000000',
  },
}
SCSS
$custom: #172777;
$custom-light: #66619f;
$custom-dark: #000000;
JSON
{
  "hex": "#172777",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 119
  },
  "hsl": {
    "h": 230,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31928,
    "c": 0.13731,
    "h": 268.3
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#172777
secondary
#AC9A3E
accent
#CE3DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172777

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

Preview Lab → · Contrast checker → · Palette generator →

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