#28174C#28174C

#28174C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.093 H 293.7°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#28174C
RGBrgb(40, 23, 76)
HSLhsl(259, 54%, 19%)
HSVhsv(259, 70%, 30%)
CMYKcmyk(47.4%, 69.7%, 0%, 70.2%)
CIE-LABlab(13.14, 22.80, -29.92)
CIE-LCHlch(13.14, 37.61, 307.31°)
OKLaboklab(26.1% 0.0375 -0.0854)
OKLCHoklch(26.1% 0.093 293.7)
XYZxyz(2.4856, 1.5856, 7.0112)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28174C #3B4C17
analogous
#17214C #28174C #43174C
triadic
#28174C #4C2817 #174C28
tetradic
#28174C #4C1721 #3B4C17 #174C43
square
#28174C #4C1721 #3B4C17 #174C43
split-complementary
#28174C #4C4317 #214C17
monochromatic
#0C0717 #0F091D #28174C #41257B #5933AA

Accessibility & contrast

On white

15.94
#28174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#28174C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28174C
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28174C#FFFFFF#000000##FFFFFF
##28174C1.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#1E232F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28174c;
/* rgb */ color: rgb(40, 23, 76);
/* oklch */ color: oklch(26.1% 0.093 293.7);
Tailwind
colors: {
  custom: {
    50: '#65557e',
    500: '#28174c',
    950: '#000000',
  },
}
SCSS
$custom: #28174c;
$custom-light: #65557e;
$custom-dark: #000000;
JSON
{
  "hex": "#28174c",
  "rgb": {
    "r": 40,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 259.245,
    "s": 53.535,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26101,
    "c": 0.09325,
    "h": 293.7
  },
  "luminance": 0.01586
}

Semantic roles & 50–950 ramp

primary
#28174C
secondary
#6C833C
accent
#DD4BAE
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #28174C

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

Preview Lab → · Contrast checker → · Palette generator →

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