#171B8F#171B8F

#171B8F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.182 H 269.3°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#171B8F
RGBrgb(23, 27, 143)
HSLhsl(238, 72%, 33%)
HSVhsv(238, 84%, 56%)
CMYKcmyk(83.9%, 81.1%, 0%, 43.9%)
CIE-LABlab(19.84, 41.26, -62.69)
CIE-LCHlch(19.84, 75.05, 303.35°)
OKLaboklab(32.67% -0.0022 -0.1816)
OKLCHoklch(32.67% 0.182 269.3)
XYZxyz(5.7015, 2.9485, 26.2499)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B8F #8F8B17
analogous
#17578F #171B8F #4F178F
triadic
#171B8F #8F171B #1B8F17
tetradic
#171B8F #8F1757 #8F8B17 #178F4F
square
#171B8F #8F1757 #8F8B17 #178F4F
split-complementary
#171B8F #8F4F17 #578F17
monochromatic
#060726 #0F115A #171B8F #1F25C4 #4045E0

Accessibility & contrast

On white

13.21
#171B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#171B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B8F
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B8F#FFFFFF#000000##FFFFFF
##171B8F1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #171b8f;
/* rgb */ color: rgb(23, 27, 143);
/* oklch */ color: oklch(32.7% 0.182 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e5ab1',
    500: '#171b8f',
    950: '#000000',
  },
}
SCSS
$custom: #171b8f;
$custom-light: #6e5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#171b8f",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 238,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32665,
    "c": 0.18159,
    "h": 269.3
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#171B8F
secondary
#C1BC41
accent
#E939EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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