#171C90#171C90

#171C90 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.182 H 269.2°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#171C90
RGBrgb(23, 28, 144)
HSLhsl(238, 72%, 33%)
HSVhsv(238, 84%, 56%)
CMYKcmyk(84%, 80.6%, 0%, 43.5%)
CIE-LABlab(20.15, 41.06, -62.80)
CIE-LCHlch(20.15, 75.03, 303.18°)
OKLaboklab(32.92% -0.0026 -0.1819)
OKLCHoklch(32.92% 0.182 269.2)
XYZxyz(5.8009, 3.0256, 26.6584)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C90 #908B17
analogous
#175890 #171C90 #4F1790
triadic
#171C90 #90171C #1C9017
tetradic
#171C90 #901758 #908B17 #17904F
square
#171C90 #901758 #908B17 #17904F
split-complementary
#171C90 #904F17 #589017
monochromatic
#060726 #0F125B #171C90 #1F26C5 #4147E1

Accessibility & contrast

On white

13.08
#171C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#171C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C90
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C90#FFFFFF#000000##FFFFFF
##171C901.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002A8E
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #171c90;
/* rgb */ color: rgb(23, 28, 144);
/* oklch */ color: oklch(32.9% 0.182 269.2);
Tailwind
colors: {
  custom: {
    50: '#6e5bb2',
    500: '#171c90',
    950: '#000000',
  },
}
SCSS
$custom: #171c90;
$custom-light: #6e5bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#171c90",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 144
  },
  "hsl": {
    "h": 237.521,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32917,
    "c": 0.18193,
    "h": 269.2
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#171C90
secondary
#C1BC42
accent
#E839EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171C90

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

Preview Lab → · Contrast checker → · Palette generator →

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