#171E68#171E68

#171E68 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.127 H 271.3°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#171E68
RGBrgb(23, 30, 104)
HSLhsl(235, 64%, 25%)
HSVhsv(235, 78%, 41%)
CMYKcmyk(77.9%, 71.2%, 0%, 59.2%)
CIE-LABlab(16.05, 25.21, -44.04)
CIE-LCHlch(16.05, 50.74, 299.79°)
OKLaboklab(28.66% 0.0028 -0.1274)
OKLCHoklch(28.66% 0.127 271.3)
XYZxyz(3.3155, 2.1098, 13.3265)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E68 #686117
analogous
#174668 #171E68 #391768
triadic
#171E68 #68171E #1E6817
tetradic
#171E68 #681746 #686117 #176839
square
#171E68 #681746 #686117 #176839
split-complementary
#171E68 #683917 #466817
monochromatic
#060719 #0C1036 #171E68 #222C9A #2D3BCC

Accessibility & contrast

On white

14.77
#171E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171E68
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E68#FFFFFF#000000##FFFFFF
##171E681.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171e68;
/* rgb */ color: rgb(23, 30, 104);
/* oklch */ color: oklch(28.7% 0.127 271.3);
Tailwind
colors: {
  custom: {
    50: '#625a94',
    500: '#171e68',
    950: '#000000',
  },
}
SCSS
$custom: #171e68;
$custom-light: #625a94;
$custom-dark: #000000;
JSON
{
  "hex": "#171e68",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 104
  },
  "hsl": {
    "h": 234.815,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28658,
    "c": 0.12739,
    "h": 271.3
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

primary
#171E68
secondary
#9E963D
accent
#D841E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171E68

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

Preview Lab → · Contrast checker → · Palette generator →

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