#171B90#171B90

#171B90 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.183 H 269.3°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#171B90
RGBrgb(23, 27, 144)
HSLhsl(238, 72%, 33%)
HSVhsv(238, 84%, 56%)
CMYKcmyk(84%, 81.3%, 0%, 43.5%)
CIE-LABlab(19.96, 41.60, -63.11)
CIE-LCHlch(19.96, 75.58, 303.39°)
OKLaboklab(32.79% -0.0024 -0.1828)
OKLCHoklch(32.79% 0.183 269.3)
XYZxyz(5.7776, 2.9790, 26.6506)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171B90 #908C17
analogous
#175790 #171B90 #501790
triadic
#171B90 #90171B #1B9017
tetradic
#171B90 #901757 #908C17 #179050
square
#171B90 #901757 #908C17 #179050
split-complementary
#171B90 #905017 #579017
monochromatic
#060726 #0F115B #171B90 #1F25C5 #4146E1

Accessibility & contrast

On white

13.16
#171B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#171B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171B90
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171B90#FFFFFF#000000##FFFFFF
##171B901.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171b90;
/* rgb */ color: rgb(23, 27, 144);
/* oklch */ color: oklch(32.8% 0.183 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e5ab2',
    500: '#171b90',
    950: '#000000',
  },
}
SCSS
$custom: #171b90;
$custom-light: #6e5ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#171b90",
  "rgb": {
    "r": 23,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 238.017,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32786,
    "c": 0.18281,
    "h": 269.3
  },
  "luminance": 0.0298
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171B90

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

Preview Lab → · Contrast checker → · Palette generator →

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