#28166D#28166D

#28166D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.139 H 283.1°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#28166D
RGBrgb(40, 22, 109)
HSLhsl(252, 66%, 26%)
HSVhsv(252, 80%, 43%)
CMYKcmyk(63.3%, 79.8%, 0%, 57.3%)
CIE-LABlab(16.15, 34.20, -47.10)
CIE-LCHlch(16.15, 58.20, 305.98°)
OKLaboklab(29.24% 0.0315 -0.1358)
OKLCHoklch(29.24% 0.139 283.1)
XYZxyz(3.9214, 2.1288, 14.6693)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28166D #5B6D16
analogous
#162F6D #28166D #53166D
triadic
#28166D #6D2816 #166D28
tetradic
#28166D #6D162F #5B6D16 #166D53
square
#28166D #6D162F #5B6D16 #166D53
split-complementary
#28166D #6D5316 #2F6D16
monochromatic
#090519 #150C3A #28166D #3B20A0 #4D2BD3

Accessibility & contrast

On white

14.73
#28166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#28166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28166D
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28166D#FFFFFF#000000##FFFFFF
##28166D1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00256B
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #28166d;
/* rgb */ color: rgb(40, 22, 109);
/* oklch */ color: oklch(29.2% 0.139 283.1);
Tailwind
colors: {
  custom: {
    50: '#6c5698',
    500: '#28166d',
    950: '#000000',
  },
}
SCSS
$custom: #28166d;
$custom-light: #6c5698;
$custom-dark: #000000;
JSON
{
  "hex": "#28166d",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 252.414,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29235,
    "c": 0.13939,
    "h": 283.1
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#28166D
secondary
#8EA33C
accent
#E93EC6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28166D

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

Preview Lab → · Contrast checker → · Palette generator →

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