#28164D#28164D

#28164D is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.096 H 293.7°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#28164D
RGBrgb(40, 22, 77)
HSLhsl(260, 56%, 19%)
HSVhsv(260, 71%, 30%)
CMYKcmyk(48.1%, 71.4%, 0%, 69.8%)
CIE-LABlab(12.99, 23.77, -30.86)
CIE-LCHlch(12.99, 38.95, 307.61°)
OKLaboklab(26.02% 0.0386 -0.0882)
OKLCHoklch(26.02% 0.096 293.7)
XYZxyz(2.5012, 1.5607, 7.1892)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28164D #3B4D16
analogous
#16204D #28164D #44164D
triadic
#28164D #4D2816 #164D28
tetradic
#28164D #4D1620 #3B4D16 #164D44
square
#28164D #4D1620 #3B4D16 #164D44
split-complementary
#28164D #4D4416 #204D16
monochromatic
#0C0718 #0F081D #28164D #41247D #5931AC

Accessibility & contrast

On white

16.00
#28164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28164D
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28164D#FFFFFF#000000##FFFFFF
##28164D1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28164d;
/* rgb */ color: rgb(40, 22, 77);
/* oklch */ color: oklch(26.0% 0.096 293.7);
Tailwind
colors: {
  custom: {
    50: '#66547f',
    500: '#28164d',
    950: '#000000',
  },
}
SCSS
$custom: #28164d;
$custom-light: #66547f;
$custom-dark: #000000;
JSON
{
  "hex": "#28164d",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 259.636,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26017,
    "c": 0.09625,
    "h": 293.7
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#28164D
secondary
#6C853A
accent
#DF49AE
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #28164D

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

Preview Lab → · Contrast checker → · Palette generator →

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