#28167C#28167C

#28167C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.158 H 279.8°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#28167C
RGBrgb(40, 22, 124)
HSLhsl(251, 70%, 29%)
HSVhsv(251, 82%, 49%)
CMYKcmyk(67.7%, 82.3%, 0%, 51.4%)
CIE-LABlab(17.83, 38.99, -54.01)
CIE-LCHlch(17.83, 66.61, 305.83°)
OKLaboklab(30.91% 0.027 -0.1559)
OKLCHoklch(30.91% 0.158 279.8)
XYZxyz(4.7989, 2.4798, 19.2906)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28167C #6A7C16
analogous
#16377C #28167C #5B167C
triadic
#28167C #7C2816 #167C28
tetradic
#28167C #7C1637 #6A7C16 #167C5B
square
#28167C #7C1637 #6A7C16 #167C5B
split-complementary
#28167C #7C5B16 #377C16
monochromatic
#08051A #170D48 #28167C #391FB0 #5032DB

Accessibility & contrast

On white

14.04
#28167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28167C
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28167C#FFFFFF#000000##FFFFFF
##28167C1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28167c;
/* rgb */ color: rgb(40, 22, 124);
/* oklch */ color: oklch(30.9% 0.158 279.8);
Tailwind
colors: {
  custom: {
    50: '#6f57a3',
    500: '#28167c',
    950: '#000000',
  },
}
SCSS
$custom: #28167c;
$custom-light: #6f57a3;
$custom-dark: #000000;
JSON
{
  "hex": "#28167c",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 250.588,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30906,
    "c": 0.15824,
    "h": 279.8
  },
  "luminance": 0.0248
}

Semantic roles & 50–950 ramp

primary
#28167C
secondary
#9DB13D
accent
#ED3BCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28167C

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

Preview Lab → · Contrast checker → · Palette generator →

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