#17187E#17187E

#17187E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.163 H 270.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#17187E
RGBrgb(23, 24, 126)
HSLhsl(239, 69%, 29%)
HSVhsv(239, 82%, 49%)
CMYKcmyk(81.7%, 81%, 0%, 50.6%)
CIE-LABlab(17.19, 37.10, -56.38)
CIE-LCHlch(17.19, 67.49, 303.34°)
OKLaboklab(30.2% 0.0021 -0.1633)
OKLCHoklch(30.2% 0.163 270.7)
XYZxyz(4.4446, 2.3413, 19.9523)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17187E #7E7D17
analogous
#174C7E #17187E #49177E
triadic
#17187E #7E1718 #187E17
tetradic
#17187E #7E174C #7E7D17 #177E49
square
#17187E #7E174C #7E7D17 #177E49
split-complementary
#17187E #7E4917 #4C7E17
monochromatic
#05051A #0E0E4A #17187E #2022B2 #3537DA

Accessibility & contrast

On white

14.30
#17187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#17187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17187E
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17187E#FFFFFF#000000##FFFFFF
##17187E1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #17187e;
/* rgb */ color: rgb(23, 24, 126);
/* oklch */ color: oklch(30.2% 0.163 270.7);
Tailwind
colors: {
  custom: {
    50: '#6957a5',
    500: '#17187e',
    950: '#000000',
  },
}
SCSS
$custom: #17187e;
$custom-light: #6957a5;
$custom-dark: #000000;
JSON
{
  "hex": "#17187e",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 239.417,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30203,
    "c": 0.16327,
    "h": 270.7
  },
  "luminance": 0.02342
}

Semantic roles & 50–950 ramp

primary
#17187E
secondary
#B3B23E
accent
#EA3CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #17187E

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

Preview Lab → · Contrast checker → · Palette generator →

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