#28167D#28167D

#28167D is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.159 H 279.6°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#28167D
RGBrgb(40, 22, 125)
HSLhsl(250, 70%, 29%)
HSVhsv(250, 82%, 49%)
CMYKcmyk(68%, 82.4%, 0%, 51%)
CIE-LABlab(17.94, 39.31, -54.45)
CIE-LCHlch(17.94, 67.16, 305.83°)
OKLaboklab(31.02% 0.0267 -0.1572)
OKLCHoklch(31.02% 0.159 279.6)
XYZxyz(4.8625, 2.5052, 19.6254)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28167D #6B7D16
analogous
#16387D #28167D #5C167D
triadic
#28167D #7D2816 #167D28
tetradic
#28167D #7D1638 #6B7D16 #167D5C
square
#28167D #7D1638 #6B7D16 #167D5C
split-complementary
#28167D #7D5C16 #387D16
monochromatic
#08051A #170D49 #28167D #391FB1 #5032DB

Accessibility & contrast

On white

13.99
#28167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#28167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28167D
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28167D#FFFFFF#000000##FFFFFF
##28167D1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28167d;
/* rgb */ color: rgb(40, 22, 125);
/* oklch */ color: oklch(31.0% 0.159 279.6);
Tailwind
colors: {
  custom: {
    50: '#6f57a4',
    500: '#28167d',
    950: '#000000',
  },
}
SCSS
$custom: #28167d;
$custom-light: #6f57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#28167d",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 250.485,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3102,
    "c": 0.15948,
    "h": 279.6
  },
  "luminance": 0.02506
}

Semantic roles & 50–950 ramp

primary
#28167D
secondary
#9DB23D
accent
#ED3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28167D

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

Preview Lab → · Contrast checker → · Palette generator →

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