#17186B#17186B

#17186B is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.0% C 0.139 H 272.4°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#17186B
RGBrgb(23, 24, 107)
HSLhsl(239, 65%, 25%)
HSVhsv(239, 79%, 42%)
CMYKcmyk(78.5%, 77.6%, 0%, 58%)
CIE-LABlab(14.94, 30.32, -47.84)
CIE-LCHlch(14.94, 56.64, 302.36°)
OKLaboklab(27.95% 0.0059 -0.1385)
OKLCHoklch(27.95% 0.139 272.4)
XYZxyz(3.3329, 1.8966, 14.0975)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17186B #6B6A17
analogous
#17426B #17186B #40176B
triadic
#17186B #6B1718 #186B17
tetradic
#17186B #6B1742 #6B6A17 #176B40
square
#17186B #6B1742 #6B6A17 #176B40
split-complementary
#17186B #6B4017 #426B17
monochromatic
#050619 #0C0D39 #17186B #22239D #2D2FD0

Accessibility & contrast

On white

15.22
#17186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17186B
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17186B#FFFFFF#000000##FFFFFF
##17186B1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#003040
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #17186b;
/* rgb */ color: rgb(23, 24, 107);
/* oklch */ color: oklch(28.0% 0.139 272.4);
Tailwind
colors: {
  custom: {
    50: '#645696',
    500: '#17186b',
    950: '#000000',
  },
}
SCSS
$custom: #17186b;
$custom-light: #645696;
$custom-dark: #000000;
JSON
{
  "hex": "#17186b",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 239.286,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.27952,
    "c": 0.13858,
    "h": 272.4
  },
  "luminance": 0.01897
}

Semantic roles & 50–950 ramp

primary
#17186B
secondary
#A1A03D
accent
#E640E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #17186B

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

Preview Lab → · Contrast checker → · Palette generator →

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