#171F70#171F70

#171F70 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.137 H 270.5°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#171F70
RGBrgb(23, 31, 112)
HSLhsl(235, 66%, 26%)
HSVhsv(235, 79%, 44%)
CMYKcmyk(79.5%, 72.3%, 0%, 56.1%)
CIE-LABlab(17.14, 27.63, -47.47)
CIE-LCHlch(17.14, 54.92, 300.20°)
OKLaboklab(29.7% 0.0013 -0.1374)
OKLCHoklch(29.7% 0.137 270.5)
XYZxyz(3.7670, 2.3316, 15.5776)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F70 #706817
analogous
#174C70 #171F70 #3C1770
triadic
#171F70 #70171F #1F7017
tetradic
#171F70 #70174C #706817 #17703C
square
#171F70 #70174C #706817 #17703C
split-complementary
#171F70 #703C17 #4C7017
monochromatic
#050719 #0D113D #171F70 #212DA3 #2D3CD4

Accessibility & contrast

On white

14.32
#171F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171F70
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F70#FFFFFF#000000##FFFFFF
##171F701.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E72
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171f70;
/* rgb */ color: rgb(23, 31, 112);
/* oklch */ color: oklch(29.7% 0.137 270.5);
Tailwind
colors: {
  custom: {
    50: '#655b9a',
    500: '#171f70',
    950: '#000000',
  },
}
SCSS
$custom: #171f70;
$custom-light: #655b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#171f70",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 112
  },
  "hsl": {
    "h": 234.607,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29698,
    "c": 0.13739,
    "h": 270.5
  },
  "luminance": 0.02332
}

Semantic roles & 50–950 ramp

primary
#171F70
secondary
#A69C3D
accent
#DA3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #171F70

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

Preview Lab → · Contrast checker → · Palette generator →

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