#171F90#171F90

#171F90 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.179 H 268.9°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#171F90
RGBrgb(23, 31, 144)
HSLhsl(236, 72%, 33%)
HSVhsv(236, 84%, 56%)
CMYKcmyk(84%, 78.5%, 0%, 43.5%)
CIE-LABlab(20.73, 39.37, -61.83)
CIE-LCHlch(20.73, 73.30, 302.49°)
OKLaboklab(33.33% -0.0034 -0.1791)
OKLCHoklch(33.33% 0.179 268.9)
XYZxyz(5.8756, 3.1750, 26.6833)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F90 #908817
analogous
#175B90 #171F90 #4B1790
triadic
#171F90 #90171F #1F9017
tetradic
#171F90 #90175B #908817 #17904B
square
#171F90 #90175B #908817 #17904B
split-complementary
#171F90 #904B17 #5B9017
monochromatic
#060826 #0F145B #171F90 #1F2AC5 #414BE1

Accessibility & contrast

On white

12.84
#171F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#171F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F90
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F90#FFFFFF#000000##FFFFFF
##171F901.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#002C8E
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #171f90;
/* rgb */ color: rgb(23, 31, 144);
/* oklch */ color: oklch(33.3% 0.179 268.9);
Tailwind
colors: {
  custom: {
    50: '#6e5cb2',
    500: '#171f90',
    950: '#000000',
  },
}
SCSS
$custom: #171f90;
$custom-light: #6e5cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#171f90",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 236.033,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33329,
    "c": 0.17917,
    "h": 268.9
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#171F90
secondary
#C1B942
accent
#E339EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #171F90

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

Preview Lab → · Contrast checker → · Palette generator →

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