#28165F#28165F

#28165F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.8% C 0.121 H 286.9°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#28165F
RGBrgb(40, 22, 95)
HSLhsl(255, 62%, 23%)
HSVhsv(255, 77%, 37%)
CMYKcmyk(57.9%, 76.8%, 0%, 62.7%)
CIE-LABlab(14.69, 29.64, -40.28)
CIE-LCHlch(14.69, 50.01, 306.35°)
OKLaboklab(27.76% 0.0352 -0.1158)
OKLCHoklch(27.76% 0.121 286.9)
XYZxyz(3.2269, 1.8510, 11.0115)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28165F #4D5F16
analogous
#16285F #28165F #4C165F
triadic
#28165F #5F2816 #165F28
tetradic
#28165F #5F1628 #4D5F16 #165F4C
square
#28165F #5F1628 #4D5F16 #165F4C
split-complementary
#28165F #5F4C16 #285F16
monochromatic
#0A0619 #130A2D #28165F #3D2291 #522DC2

Accessibility & contrast

On white

15.33
#28165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#28165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28165F
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28165F#FFFFFF#000000##FFFFFF
##28165F1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#112A39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28165f;
/* rgb */ color: rgb(40, 22, 95);
/* oklch */ color: oklch(27.8% 0.121 286.9);
Tailwind
colors: {
  custom: {
    50: '#69558d',
    500: '#28165f',
    950: '#000000',
  },
}
SCSS
$custom: #28165f;
$custom-light: #69558d;
$custom-dark: #000000;
JSON
{
  "hex": "#28165f",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 254.795,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27758,
    "c": 0.12106,
    "h": 286.9
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#28165F
secondary
#80963B
accent
#E542BD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28165F

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

Preview Lab → · Contrast checker → · Palette generator →

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