#17186C#17186C

#17186C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.140 H 272.3°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#17186C
RGBrgb(23, 24, 108)
HSLhsl(239, 65%, 26%)
HSVhsv(239, 79%, 42%)
CMYKcmyk(78.7%, 77.8%, 0%, 57.6%)
CIE-LABlab(15.05, 30.68, -48.31)
CIE-LCHlch(15.05, 57.23, 302.42°)
OKLaboklab(28.07% 0.0057 -0.1398)
OKLCHoklch(28.07% 0.14 272.3)
XYZxyz(3.3858, 1.9178, 14.3762)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17186C #6C6B17
analogous
#17426C #17186C #40176C
triadic
#17186C #6C1718 #186C17
tetradic
#17186C #6C1742 #6C6B17 #176C40
square
#17186C #6C1742 #6C6B17 #176C40
split-complementary
#17186C #6C4017 #426C17
monochromatic
#050619 #0C0D3A #17186C #22239E #2C2ED1

Accessibility & contrast

On white

15.18
#17186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#17186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17186C
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17186C#FFFFFF#000000##FFFFFF
##17186C1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #17186c;
/* rgb */ color: rgb(23, 24, 108);
/* oklch */ color: oklch(28.1% 0.140 272.3);
Tailwind
colors: {
  custom: {
    50: '#645697',
    500: '#17186c',
    950: '#000000',
  },
}
SCSS
$custom: #17186c;
$custom-light: #645697;
$custom-dark: #000000;
JSON
{
  "hex": "#17186c",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 239.294,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28067,
    "c": 0.13992,
    "h": 272.3
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#17186C
secondary
#A2A13D
accent
#E640E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #17186C

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

Preview Lab → · Contrast checker → · Palette generator →

#17186C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva