#171F66#171F66

#171F66 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.6% C 0.123 H 271.1°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#171F66
RGBrgb(23, 31, 102)
HSLhsl(234, 63%, 25%)
HSVhsv(234, 77%, 40%)
CMYKcmyk(77.5%, 69.6%, 0%, 60%)
CIE-LABlab(16.11, 23.73, -42.63)
CIE-LCHlch(16.11, 48.79, 299.10°)
OKLaboklab(28.64% 0.0023 -0.1232)
OKLCHoklch(28.64% 0.123 271.1)
XYZxyz(3.2408, 2.1211, 12.8064)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171F66 #665E17
analogous
#174766 #171F66 #371766
triadic
#171F66 #66171F #1F6617
tetradic
#171F66 #661747 #665E17 #176637
square
#171F66 #661747 #665E17 #176637
split-complementary
#171F66 #663717 #476617
monochromatic
#060819 #0C1034 #171F66 #222E98 #2E3DCA

Accessibility & contrast

On white

14.75
#171F66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#171F66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171F66
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171F66#FFFFFF#000000##FFFFFF
##171F661.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#00323F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #171f66;
/* rgb */ color: rgb(23, 31, 102);
/* oklch */ color: oklch(28.6% 0.123 271.1);
Tailwind
colors: {
  custom: {
    50: '#625a92',
    500: '#171f66',
    950: '#000000',
  },
}
SCSS
$custom: #171f66;
$custom-light: #625a92;
$custom-dark: #000000;
JSON
{
  "hex": "#171f66",
  "rgb": {
    "r": 23,
    "g": 31,
    "b": 102
  },
  "hsl": {
    "h": 233.924,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28637,
    "c": 0.12326,
    "h": 271.1
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#171F66
secondary
#9C933C
accent
#D642E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #171F66

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

Preview Lab → · Contrast checker → · Palette generator →

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