#171E77#171E77

#171E77 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.148 H 270.4°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#171E77
RGBrgb(23, 30, 119)
HSLhsl(236, 68%, 28%)
HSVhsv(236, 81%, 47%)
CMYKcmyk(80.7%, 74.8%, 0%, 53.3%)
CIE-LABlab(17.66, 30.95, -51.13)
CIE-LCHlch(17.66, 59.77, 301.18°)
OKLaboklab(30.3% 0.0009 -0.1481)
OKLCHoklch(30.3% 0.148 270.4)
XYZxyz(4.1463, 2.4422, 17.7020)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E77 #777017
analogous
#174E77 #171E77 #401777
triadic
#171E77 #77171E #1E7717
tetradic
#171E77 #77174E #777017 #177740
square
#171E77 #77174E #777017 #177740
split-complementary
#171E77 #774017 #4E7717
monochromatic
#05061A #0D1144 #171E77 #212BAA #313DD7

Accessibility & contrast

On white

14.11
#171E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#171E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E77
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E77#FFFFFF#000000##FFFFFF
##171E771.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171e77;
/* rgb */ color: rgb(23, 30, 119);
/* oklch */ color: oklch(30.3% 0.148 270.4);
Tailwind
colors: {
  custom: {
    50: '#675a9f',
    500: '#171e77',
    950: '#000000',
  },
}
SCSS
$custom: #171e77;
$custom-light: #675a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#171e77",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 119
  },
  "hsl": {
    "h": 235.625,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30296,
    "c": 0.14806,
    "h": 270.4
  },
  "luminance": 0.02443
}

Semantic roles & 50–950 ramp

primary
#171E77
secondary
#ACA43E
accent
#DE3DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #171E77

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

Preview Lab → · Contrast checker → · Palette generator →

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