#28166C#28166C

#28166C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.138 H 283.3°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#28166C
RGBrgb(40, 22, 108)
HSLhsl(253, 66%, 25%)
HSVhsv(253, 80%, 42%)
CMYKcmyk(63%, 79.6%, 0%, 57.6%)
CIE-LABlab(16.04, 33.87, -46.62)
CIE-LCHlch(16.04, 57.63, 306.00°)
OKLaboklab(29.13% 0.0318 -0.1344)
OKLCHoklch(29.13% 0.138 283.3)
XYZxyz(3.8679, 2.1074, 14.3874)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28166C #5A6C16
analogous
#162F6C #28166C #53166C
triadic
#28166C #6C2816 #166C28
tetradic
#28166C #6C162F #5A6C16 #166C53
square
#28166C #6C162F #5A6C16 #166C53
split-complementary
#28166C #6C5316 #2F6C16
monochromatic
#090519 #150C39 #28166C #3B209F #4E2BD2

Accessibility & contrast

On white

14.77
#28166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#28166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28166C
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28166C#FFFFFF#000000##FFFFFF
##28166C1.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #28166c;
/* rgb */ color: rgb(40, 22, 108);
/* oklch */ color: oklch(29.1% 0.138 283.3);
Tailwind
colors: {
  custom: {
    50: '#6c5697',
    500: '#28166c',
    950: '#000000',
  },
}
SCSS
$custom: #28166c;
$custom-light: #6c5697;
$custom-dark: #000000;
JSON
{
  "hex": "#28166c",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 252.558,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29126,
    "c": 0.13811,
    "h": 283.3
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#28166C
secondary
#8DA23C
accent
#E93FC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #28166C

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

Preview Lab → · Contrast checker → · Palette generator →

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