#28164C#28164C

#28164C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.095 H 294.1°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#28164C
RGBrgb(40, 22, 76)
HSLhsl(260, 55%, 19%)
HSVhsv(260, 71%, 30%)
CMYKcmyk(47.4%, 71.1%, 0%, 70.2%)
CIE-LABlab(12.90, 23.45, -30.31)
CIE-LCHlch(12.90, 38.32, 307.72°)
OKLaboklab(25.93% 0.0388 -0.0865)
OKLCHoklch(25.93% 0.095 294.1)
XYZxyz(2.4661, 1.5467, 7.0047)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28164C #3A4C16
analogous
#161F4C #28164C #43164C
triadic
#28164C #4C2816 #164C28
tetradic
#28164C #4C161F #3A4C16 #164C43
square
#28164C #4C161F #3A4C16 #164C43
split-complementary
#28164C #4C4316 #1F4C16
monochromatic
#0C0718 #0F081D #28164C #41247B #5A31AB

Accessibility & contrast

On white

16.04
#28164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#28164C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28164C
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28164C#FFFFFF#000000##FFFFFF
##28164C1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#1E232E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #28164c;
/* rgb */ color: rgb(40, 22, 76);
/* oklch */ color: oklch(25.9% 0.095 294.1);
Tailwind
colors: {
  custom: {
    50: '#66547e',
    500: '#28164c',
    950: '#000000',
  },
}
SCSS
$custom: #28164c;
$custom-light: #66547e;
$custom-dark: #000000;
JSON
{
  "hex": "#28164c",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 260,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25927,
    "c": 0.09483,
    "h": 294.1
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#28164C
secondary
#6B843A
accent
#DE49AD
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #28164C

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

Preview Lab → · Contrast checker → · Palette generator →

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