#172C76#172C76

#172C76 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.8% C 0.129 H 266.8°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#172C76
RGBrgb(23, 44, 118)
HSLhsl(227, 67%, 28%)
HSVhsv(227, 81%, 46%)
CMYKcmyk(80.5%, 62.7%, 0%, 53.7%)
CIE-LABlab(21.17, 20.96, -44.72)
CIE-LCHlch(21.17, 49.38, 295.11°)
OKLaboklab(32.84% -0.0073 -0.1292)
OKLCHoklch(32.84% 0.129 266.8)
XYZxyz(4.5229, 3.2910, 17.5329)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C76 #766117
analogous
#175B76 #172C76 #321776
triadic
#172C76 #76172C #2C7617
tetradic
#172C76 #76175B #766117 #177632
square
#172C76 #76175B #766117 #177632
split-complementary
#172C76 #763217 #5B7617
monochromatic
#050A1A #0D1943 #172C76 #213FA9 #3155D7

Accessibility & contrast

On white

12.66
#172C76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#172C76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C76
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C76#FFFFFF#000000##FFFFFF
##172C761.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172c76;
/* rgb */ color: rgb(23, 44, 118);
/* oklch */ color: oklch(32.8% 0.129 266.8);
Tailwind
colors: {
  custom: {
    50: '#65649e',
    500: '#172c76',
    950: '#000000',
  },
}
SCSS
$custom: #172c76;
$custom-light: #65649e;
$custom-dark: #000000;
JSON
{
  "hex": "#172c76",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 118
  },
  "hsl": {
    "h": 226.737,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3284,
    "c": 0.12943,
    "h": 266.8
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#172C76
secondary
#AB933E
accent
#C43EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172C76

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

Preview Lab → · Contrast checker → · Palette generator →

#172C76 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva