#171966#171966

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

Color values

HEX#171966
RGBrgb(23, 25, 102)
HSLhsl(238, 63%, 25%)
HSVhsv(238, 77%, 40%)
CMYKcmyk(77.5%, 75.5%, 0%, 60%)
CIE-LABlab(14.60, 27.81, -45.10)
CIE-LCHlch(14.60, 52.99, 301.66°)
OKLaboklab(27.55% 0.0062 -0.1305)
OKLCHoklch(27.55% 0.131 272.7)
XYZxyz(3.0984, 1.8364, 12.7590)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171966 #666417
analogous
#174166 #171966 #3D1766
triadic
#171966 #661719 #196617
tetradic
#171966 #661741 #666417 #17663D
square
#171966 #661741 #666417 #17663D
split-complementary
#171966 #663D17 #416617
monochromatic
#060619 #0C0D34 #171966 #222598 #2E31CA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##171966#FFFFFF#000000##FFFFFF
##1719661.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)
#002968
Deuteranopia (green-blind)
#002165
Tritanopia (blue-blind)
#002F3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171966;
/* rgb */ color: rgb(23, 25, 102);
/* oklch */ color: oklch(27.5% 0.131 272.7);
Tailwind
colors: {
  custom: {
    50: '#625693',
    500: '#171966',
    950: '#000000',
  },
}
SCSS
$custom: #171966;
$custom-light: #625693;
$custom-dark: #000000;
JSON
{
  "hex": "#171966",
  "rgb": {
    "r": 23,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 238.481,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27548,
    "c": 0.13064,
    "h": 272.7
  },
  "luminance": 0.01837
}

Semantic roles & 50–950 ramp

primary
#171966
secondary
#9C9A3C
accent
#E242E6
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #171966

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

Preview Lab → · Contrast checker → · Palette generator →

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