#171968#171968

#171968 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.8% C 0.133 H 272.5°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#171968
RGBrgb(23, 25, 104)
HSLhsl(239, 64%, 25%)
HSVhsv(239, 78%, 41%)
CMYKcmyk(77.9%, 76%, 0%, 59.2%)
CIE-LABlab(14.83, 28.56, -46.06)
CIE-LCHlch(14.83, 54.19, 301.80°)
OKLaboklab(27.77% 0.0059 -0.1333)
OKLCHoklch(27.77% 0.133 272.5)
XYZxyz(3.1988, 1.8766, 13.2876)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171968 #686617
analogous
#174168 #171968 #3E1768
triadic
#171968 #681719 #196817
tetradic
#171968 #681741 #686617 #17683E
square
#171968 #681741 #686617 #17683E
split-complementary
#171968 #683E17 #416817
monochromatic
#060619 #0C0D36 #171968 #22259A #2D31CC

Accessibility & contrast

On white

15.27
#171968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#171968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171968
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171968#FFFFFF#000000##FFFFFF
##1719681.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002167
Tritanopia (blue-blind)
#002F3E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171968;
/* rgb */ color: rgb(23, 25, 104);
/* oklch */ color: oklch(27.8% 0.133 272.5);
Tailwind
colors: {
  custom: {
    50: '#635694',
    500: '#171968',
    950: '#000000',
  },
}
SCSS
$custom: #171968;
$custom-light: #635694;
$custom-dark: #000000;
JSON
{
  "hex": "#171968",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 238.519,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27773,
    "c": 0.13339,
    "h": 272.5
  },
  "luminance": 0.01877
}

Semantic roles & 50–950 ramp

primary
#171968
secondary
#9E9C3D
accent
#E341E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171968

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

Preview Lab → · Contrast checker → · Palette generator →

#171968 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva