#17154C#17154C

#17154C is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.0% C 0.098 H 277.6°. Best body text is #FFFFFF at 16.83:1 contrast (WCAG AA passes).

Color values

HEX#17154C
RGBrgb(23, 21, 76)
HSLhsl(242, 57%, 19%)
HSVhsv(242, 72%, 30%)
CMYKcmyk(69.7%, 72.4%, 0%, 70.2%)
CIE-LABlab(10.85, 20.57, -33.73)
CIE-LCHlch(10.85, 39.51, 301.38°)
OKLaboklab(24% 0.013 -0.0972)
OKLCHoklch(24% 0.098 277.6)
XYZxyz(1.9256, 1.2401, 6.9740)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17154C #4A4C15
analogous
#152F4C #17154C #33154C
triadic
#17154C #4C1715 #154C17
tetradic
#17154C #4C152F #4A4C15 #154C33
square
#17154C #4C152F #4A4C15 #154C33
split-complementary
#17154C #4C3315 #2F4C15
monochromatic
#070718 #08081C #17154C #26227C #342FAC

Accessibility & contrast

On white

16.83
#17154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#17154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17154C
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17154C#FFFFFF#000000##FFFFFF
##17154C1.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#001B4B
Tritanopia (blue-blind)
#00232E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #17154c;
/* rgb */ color: rgb(23, 21, 76);
/* oklch */ color: oklch(24.0% 0.098 277.6);
Tailwind
colors: {
  custom: {
    50: '#5c527f',
    500: '#17154c',
    950: '#000000',
  },
}
SCSS
$custom: #17154c;
$custom-light: #5c527f;
$custom-dark: #000000;
JSON
{
  "hex": "#17154c",
  "rgb": {
    "r": 23,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 242.182,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24003,
    "c": 0.09809,
    "h": 277.6
  },
  "luminance": 0.0124
}

Semantic roles & 50–950 ramp

primary
#17154C
secondary
#818439
accent
#E048DA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #17154C

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

Preview Lab → · Contrast checker → · Palette generator →

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