#171F68#171F68

#171F68 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 28.8% C 0.126 H 271.0°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#171F68
RGBrgb(23, 31, 104)
HSLhsl(234, 64%, 25%)
HSVhsv(234, 78%, 41%)
CMYKcmyk(77.9%, 70.2%, 0%, 59.2%)
CIE-LABlab(16.31, 24.52, -43.61)
CIE-LCHlch(16.31, 50.03, 299.34°)
OKLaboklab(28.85% 0.0021 -0.1261)
OKLCHoklch(28.85% 0.126 271)
XYZxyz(3.3412, 2.1613, 13.3351)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F68 #686017
analogous
#174868 #171F68 #371768
triadic
#171F68 #68171F #1F6817
tetradic
#171F68 #681748 #686017 #176837
square
#171F68 #681748 #686017 #176837
split-complementary
#171F68 #683717 #486817
monochromatic
#060719 #0C1036 #171F68 #222E9A #2D3DCC

Accessibility & contrast

On white

14.66
#171F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#171F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F68
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F68#FFFFFF#000000##FFFFFF
##171F681.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#003340
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171f68;
/* rgb */ color: rgb(23, 31, 104);
/* oklch */ color: oklch(28.8% 0.126 271.0);
Tailwind
colors: {
  custom: {
    50: '#625a94',
    500: '#171f68',
    950: '#000000',
  },
}
SCSS
$custom: #171f68;
$custom-light: #625a94;
$custom-dark: #000000;
JSON
{
  "hex": "#171f68",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 104
  },
  "hsl": {
    "h": 234.074,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28846,
    "c": 0.12614,
    "h": 271
  },
  "luminance": 0.02162
}

Semantic roles & 50–950 ramp

primary
#171F68
secondary
#9E953D
accent
#D641E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #171F68

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

Preview Lab → · Contrast checker → · Palette generator →

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