#172776#172776

#172776 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.136 H 268.3°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#172776
RGBrgb(23, 39, 118)
HSLhsl(230, 67%, 28%)
HSVhsv(230, 81%, 46%)
CMYKcmyk(80.5%, 66.9%, 0%, 53.7%)
CIE-LABlab(19.80, 24.49, -46.95)
CIE-LCHlch(19.80, 52.96, 297.54°)
OKLaboklab(31.83% -0.004 -0.1358)
OKLCHoklch(31.83% 0.136 268.3)
XYZxyz(4.3478, 2.9407, 17.4745)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172776 #766617
analogous
#175676 #172776 #371776
triadic
#172776 #761727 #277617
tetradic
#172776 #761756 #766617 #177637
square
#172776 #761756 #766617 #177637
split-complementary
#172776 #763717 #567617
monochromatic
#05081A #0D1643 #172776 #2138A9 #314DD7

Accessibility & contrast

On white

13.22
#172776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172776
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172776#FFFFFF#000000##FFFFFF
##1727761.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172776;
/* rgb */ color: rgb(23, 39, 118);
/* oklch */ color: oklch(31.8% 0.136 268.3);
Tailwind
colors: {
  custom: {
    50: '#65619e',
    500: '#172776',
    950: '#000000',
  },
}
SCSS
$custom: #172776;
$custom-light: #65619e;
$custom-dark: #000000;
JSON
{
  "hex": "#172776",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 118
  },
  "hsl": {
    "h": 229.895,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31827,
    "c": 0.1359,
    "h": 268.3
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#172776
secondary
#AB993E
accent
#CD3EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #172776

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

Preview Lab → · Contrast checker → · Palette generator →

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