#171B7A#171B7A

#171B7A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.155 H 270.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#171B7A
RGBrgb(23, 27, 122)
HSLhsl(238, 68%, 28%)
HSVhsv(238, 81%, 48%)
CMYKcmyk(81.1%, 77.9%, 0%, 52.2%)
CIE-LABlab(17.32, 33.93, -53.60)
CIE-LCHlch(17.32, 63.44, 302.33°)
OKLaboklab(30.16% 0.0018 -0.1552)
OKLCHoklch(30.16% 0.155 270.6)
XYZxyz(4.2569, 2.3707, 18.6418)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B7A #7A7617
analogous
#174C7A #171B7A #44177A
triadic
#171B7A #7A171B #1B7A17
tetradic
#171B7A #7A174C #7A7617 #177A44
square
#171B7A #7A174C #7A7617 #177A44
split-complementary
#171B7A #7A4417 #4C7A17
monochromatic
#05061A #0D1047 #171B7A #2126AD #333AD9

Accessibility & contrast

On white

14.25
#171B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171B7A
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B7A#FFFFFF#000000##FFFFFF
##171B7A1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171b7a;
/* rgb */ color: rgb(23, 27, 122);
/* oklch */ color: oklch(30.2% 0.155 270.6);
Tailwind
colors: {
  custom: {
    50: '#6858a2',
    500: '#171b7a',
    950: '#000000',
  },
}
SCSS
$custom: #171b7a;
$custom-light: #6858a2;
$custom-dark: #000000;
JSON
{
  "hex": "#171b7a",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 237.576,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30161,
    "c": 0.15524,
    "h": 270.6
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#171B7A
secondary
#AFAA3E
accent
#E43DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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