#172E77#172E77

#172E77 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.128 H 266.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#172E77
RGBrgb(23, 46, 119)
HSLhsl(226, 68%, 28%)
HSVhsv(226, 81%, 47%)
CMYKcmyk(80.7%, 61.3%, 0%, 53.3%)
CIE-LABlab(21.83, 19.94, -44.29)
CIE-LCHlch(21.83, 48.57, 294.24°)
OKLaboklab(33.36% -0.0087 -0.1279)
OKLCHoklch(33.36% 0.128 266.1)
XYZxyz(4.6589, 3.4675, 17.8729)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E77 #776017
analogous
#175E77 #172E77 #301777
triadic
#172E77 #77172E #2E7717
tetradic
#172E77 #77175E #776017 #177730
square
#172E77 #77175E #776017 #177730
split-complementary
#172E77 #773017 #5E7717
monochromatic
#050A1A #0D1A44 #172E77 #2142AA #3159D7

Accessibility & contrast

On white

12.40
#172E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#172E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E77
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E77#FFFFFF#000000##FFFFFF
##172E771.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172e77;
/* rgb */ color: rgb(23, 46, 119);
/* oklch */ color: oklch(33.4% 0.128 266.1);
Tailwind
colors: {
  custom: {
    50: '#65669f',
    500: '#172e77',
    950: '#000000',
  },
}
SCSS
$custom: #172e77;
$custom-light: #65669f;
$custom-dark: #000000;
JSON
{
  "hex": "#172e77",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 225.625,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33355,
    "c": 0.12824,
    "h": 266.1
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#172E77
secondary
#AC923E
accent
#C13DEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172E77

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

Preview Lab → · Contrast checker → · Palette generator →

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