#171F77#171F77

#171F77 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.147 H 270.2°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#171F77
RGBrgb(23, 31, 119)
HSLhsl(235, 68%, 28%)
HSVhsv(235, 81%, 47%)
CMYKcmyk(80.7%, 73.9%, 0%, 53.3%)
CIE-LABlab(17.89, 30.30, -50.74)
CIE-LCHlch(17.89, 59.10, 300.84°)
OKLaboklab(30.46% 0.0004 -0.1469)
OKLCHoklch(30.46% 0.147 270.2)
XYZxyz(4.1720, 2.4936, 17.7106)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F77 #776F17
analogous
#174F77 #171F77 #3F1777
triadic
#171F77 #77171F #1F7717
tetradic
#171F77 #77174F #776F17 #17773F
square
#171F77 #77174F #776F17 #17773F
split-complementary
#171F77 #773F17 #4F7717
monochromatic
#05071A #0D1244 #171F77 #212CAA #313FD7

Accessibility & contrast

On white

14.01
#171F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#171F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F77
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F77#FFFFFF#000000##FFFFFF
##171F771.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171f77;
/* rgb */ color: rgb(23, 31, 119);
/* oklch */ color: oklch(30.5% 0.147 270.2);
Tailwind
colors: {
  custom: {
    50: '#665b9f',
    500: '#171f77',
    950: '#000000',
  },
}
SCSS
$custom: #171f77;
$custom-light: #665b9f;
$custom-dark: #000000;
JSON
{
  "hex": "#171f77",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 235,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30465,
    "c": 0.14694,
    "h": 270.2
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#171F77
secondary
#ACA33E
accent
#DC3DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #171F77

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

Preview Lab → · Contrast checker → · Palette generator →

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