#17187A#17187A

#17187A is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.158 H 271.0°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#17187A
RGBrgb(23, 24, 122)
HSLhsl(239, 68%, 28%)
HSVhsv(239, 81%, 48%)
CMYKcmyk(81.1%, 80.3%, 0%, 52.2%)
CIE-LABlab(16.70, 35.70, -54.63)
CIE-LCHlch(16.70, 65.26, 303.17°)
OKLaboklab(29.72% 0.0029 -0.1582)
OKLCHoklch(29.72% 0.158 271)
XYZxyz(4.1916, 2.2401, 18.6200)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17187A #7A7917
analogous
#17497A #17187A #47177A
triadic
#17187A #7A1718 #187A17
tetradic
#17187A #7A1749 #7A7917 #177A47
square
#17187A #7A1749 #7A7917 #177A47
split-complementary
#17187A #7A4717 #497A17
monochromatic
#05051A #0D0E47 #17187A #2122AD #3335D9

Accessibility & contrast

On white

14.50
#17187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#17187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17187A
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17187A#FFFFFF#000000##FFFFFF
##17187A1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002478
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #17187a;
/* rgb */ color: rgb(23, 24, 122);
/* oklch */ color: oklch(29.7% 0.158 271.0);
Tailwind
colors: {
  custom: {
    50: '#6857a2',
    500: '#17187a',
    950: '#000000',
  },
}
SCSS
$custom: #17187a;
$custom-light: #6857a2;
$custom-dark: #000000;
JSON
{
  "hex": "#17187a",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 239.394,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.2972,
    "c": 0.15822,
    "h": 271
  },
  "luminance": 0.02241
}

Semantic roles & 50–950 ramp

primary
#17187A
secondary
#AFAE3E
accent
#E93DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #17187A

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

Preview Lab → · Contrast checker → · Palette generator →

#17187A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva