#171868#171868

#171868 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.6% C 0.135 H 272.7°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#171868
RGBrgb(23, 24, 104)
HSLhsl(239, 64%, 25%)
HSVhsv(239, 78%, 41%)
CMYKcmyk(77.9%, 76.9%, 0%, 59.2%)
CIE-LABlab(14.59, 29.21, -46.44)
CIE-LCHlch(14.59, 54.86, 302.17°)
OKLaboklab(27.61% 0.0064 -0.1344)
OKLCHoklch(27.61% 0.135 272.7)
XYZxyz(3.1778, 1.8346, 13.2806)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171868 #686717
analogous
#174168 #171868 #3E1768
triadic
#171868 #681718 #186817
tetradic
#171868 #681741 #686717 #17683E
square
#171868 #681741 #686717 #17683E
split-complementary
#171868 #683E17 #416817
monochromatic
#060619 #0C0C36 #171868 #22249A #2D2FCC

Accessibility & contrast

On white

15.36
#171868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#171868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171868
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171868#FFFFFF#000000##FFFFFF
##1718681.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.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: #171868;
/* rgb */ color: rgb(23, 24, 104);
/* oklch */ color: oklch(27.6% 0.135 272.7);
Tailwind
colors: {
  custom: {
    50: '#635694',
    500: '#171868',
    950: '#000000',
  },
}
SCSS
$custom: #171868;
$custom-light: #635694;
$custom-dark: #000000;
JSON
{
  "hex": "#171868",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 239.259,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27607,
    "c": 0.13452,
    "h": 272.7
  },
  "luminance": 0.01835
}

Semantic roles & 50–950 ramp

primary
#171868
secondary
#9E9D3D
accent
#E541E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171868

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

Preview Lab → · Contrast checker → · Palette generator →

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