#28166F#28166F

#28166F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.142 H 282.6°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#28166F
RGBrgb(40, 22, 111)
HSLhsl(252, 67%, 26%)
HSVhsv(252, 80%, 44%)
CMYKcmyk(64%, 80.2%, 0%, 56.5%)
CIE-LABlab(16.37, 34.84, -48.04)
CIE-LCHlch(16.37, 59.35, 305.95°)
OKLaboklab(29.45% 0.0309 -0.1385)
OKLCHoklch(29.45% 0.142 282.6)
XYZxyz(4.0303, 2.1724, 15.2428)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28166F #5D6F16
analogous
#16306F #28166F #54166F
triadic
#28166F #6F2816 #166F28
tetradic
#28166F #6F1630 #5D6F16 #166F54
square
#28166F #6F1630 #5D6F16 #166F54
split-complementary
#28166F #6F5416 #306F16
monochromatic
#09051A #160C3C #28166F #3A20A2 #4D2BD5

Accessibility & contrast

On white

14.64
#28166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28166F
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28166F#FFFFFF#000000##FFFFFF
##28166F1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #28166f;
/* rgb */ color: rgb(40, 22, 111);
/* oklch */ color: oklch(29.5% 0.142 282.6);
Tailwind
colors: {
  custom: {
    50: '#6c5699',
    500: '#28166f',
    950: '#000000',
  },
}
SCSS
$custom: #28166f;
$custom-light: #6c5699;
$custom-dark: #000000;
JSON
{
  "hex": "#28166f",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 252.135,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29453,
    "c": 0.14195,
    "h": 282.6
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#28166F
secondary
#90A53C
accent
#EA3EC7
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28166F

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

Preview Lab → · Contrast checker → · Palette generator →

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