#17187F#17187F

#17187F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.165 H 270.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#17187F
RGBrgb(23, 24, 127)
HSLhsl(239, 69%, 29%)
HSVhsv(239, 82%, 50%)
CMYKcmyk(81.9%, 81.1%, 0%, 50.2%)
CIE-LABlab(17.31, 37.44, -56.82)
CIE-LCHlch(17.31, 68.05, 303.38°)
OKLaboklab(30.32% 0.0018 -0.1645)
OKLCHoklch(30.32% 0.165 270.6)
XYZxyz(4.5094, 2.3672, 20.2938)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17187F #7F7E17
analogous
#174C7F #17187F #4A177F
triadic
#17187F #7F1718 #187F17
tetradic
#17187F #7F174C #7F7E17 #177F4A
square
#17187F #7F174C #7F7E17 #177F4A
split-complementary
#17187F #7F4A17 #4C7F17
monochromatic
#05051A #0E0E4B #17187F #2022B3 #3637DB

Accessibility & contrast

On white

14.25
#17187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17187F
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17187F#FFFFFF#000000##FFFFFF
##17187F1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #17187f;
/* rgb */ color: rgb(23, 24, 127);
/* oklch */ color: oklch(30.3% 0.165 270.6);
Tailwind
colors: {
  custom: {
    50: '#6957a5',
    500: '#17187f',
    950: '#000000',
  },
}
SCSS
$custom: #17187f;
$custom-light: #6957a5;
$custom-dark: #000000;
JSON
{
  "hex": "#17187f",
  "rgb": {
    "r": 23,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 239.423,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30324,
    "c": 0.16453,
    "h": 270.6
  },
  "luminance": 0.02368
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #17187F

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

Preview Lab → · Contrast checker → · Palette generator →

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