#171B79#171B79

#171B79 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.154 H 270.7°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#171B79
RGBrgb(23, 27, 121)
HSLhsl(238, 68%, 28%)
HSVhsv(238, 81%, 47%)
CMYKcmyk(81%, 77.7%, 0%, 52.5%)
CIE-LABlab(17.21, 33.57, -53.15)
CIE-LCHlch(17.21, 62.87, 302.27°)
OKLaboklab(30.04% 0.0019 -0.1539)
OKLCHoklch(30.04% 0.154 270.7)
XYZxyz(4.1953, 2.3460, 18.3172)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B79 #797517
analogous
#174C79 #171B79 #441779
triadic
#171B79 #79171B #1B7917
tetradic
#171B79 #79174C #797517 #177944
square
#171B79 #79174C #797517 #177944
split-complementary
#171B79 #794417 #4C7917
monochromatic
#05061A #0D1046 #171B79 #2126AC #3239D8

Accessibility & contrast

On white

14.29
#171B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#171B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B79
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B79#FFFFFF#000000##FFFFFF
##171B791.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002577
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171b79;
/* rgb */ color: rgb(23, 27, 121);
/* oklch */ color: oklch(30.0% 0.154 270.7);
Tailwind
colors: {
  custom: {
    50: '#6758a1',
    500: '#171b79',
    950: '#000000',
  },
}
SCSS
$custom: #171b79;
$custom-light: #6758a1;
$custom-dark: #000000;
JSON
{
  "hex": "#171b79",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 237.551,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30044,
    "c": 0.15393,
    "h": 270.7
  },
  "luminance": 0.02347
}

Semantic roles & 50–950 ramp

primary
#171B79
secondary
#AEA93E
accent
#E43DEB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171B79

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

Preview Lab → · Contrast checker → · Palette generator →

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