#28167A#28167A

#28167A is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.156 H 280.2°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#28167A
RGBrgb(40, 22, 122)
HSLhsl(251, 69%, 28%)
HSVhsv(251, 82%, 48%)
CMYKcmyk(67.2%, 82%, 0%, 52.2%)
CIE-LABlab(17.60, 38.36, -53.11)
CIE-LCHlch(17.60, 65.51, 305.84°)
OKLaboklab(30.68% 0.0276 -0.1533)
OKLCHoklch(30.68% 0.156 280.2)
XYZxyz(4.6737, 2.4297, 18.6313)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28167A #687A16
analogous
#16367A #28167A #5A167A
triadic
#28167A #7A2816 #167A28
tetradic
#28167A #7A1636 #687A16 #167A5A
square
#28167A #7A1636 #687A16 #167A5A
split-complementary
#28167A #7A5A16 #367A16
monochromatic
#09051A #170D46 #28167A #391FAE #4F31DA

Accessibility & contrast

On white

14.13
#28167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#28167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28167A
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28167A#FFFFFF#000000##FFFFFF
##28167A1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7D
Deuteranopia (green-blind)
#002778
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #28167a;
/* rgb */ color: rgb(40, 22, 122);
/* oklch */ color: oklch(30.7% 0.156 280.2);
Tailwind
colors: {
  custom: {
    50: '#6f57a2',
    500: '#28167a',
    950: '#000000',
  },
}
SCSS
$custom: #28167a;
$custom-light: #6f57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28167a",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 250.8,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30679,
    "c": 0.15578,
    "h": 280.2
  },
  "luminance": 0.0243
}

Semantic roles & 50–950 ramp

primary
#28167A
secondary
#9BAF3D
accent
#EC3CCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28167A

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

Preview Lab → · Contrast checker → · Palette generator →

#28167A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva