#28165B#28165B

#28165B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.116 H 288.2°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#28165B
RGBrgb(40, 22, 91)
HSLhsl(256, 61%, 22%)
HSVhsv(256, 76%, 36%)
CMYKcmyk(56%, 75.8%, 0%, 64.3%)
CIE-LABlab(14.29, 28.33, -38.25)
CIE-LCHlch(14.29, 47.60, 306.53°)
OKLaboklab(27.35% 0.0362 -0.1099)
OKLCHoklch(27.35% 0.116 288.2)
XYZxyz(3.0498, 1.7801, 10.0784)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28165B #495B16
analogous
#16275B #28165B #4B165B
triadic
#28165B #5B2816 #165B28
tetradic
#28165B #5B1627 #495B16 #165B4B
square
#28165B #5B1627 #495B16 #165B4B
split-complementary
#28165B #5B4B16 #275B16
monochromatic
#0B0619 #120A2A #28165B #3E228C #532EBE

Accessibility & contrast

On white

15.49
#28165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#28165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28165B
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28165B#FFFFFF#000000##FFFFFF
##28165B1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#152836
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28165b;
/* rgb */ color: rgb(40, 22, 91);
/* oklch */ color: oklch(27.4% 0.116 288.2);
Tailwind
colors: {
  custom: {
    50: '#68558a',
    500: '#28165b',
    950: '#000000',
  },
}
SCSS
$custom: #28165b;
$custom-light: #68558a;
$custom-dark: #000000;
JSON
{
  "hex": "#28165b",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 255.652,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27354,
    "c": 0.11568,
    "h": 288.2
  },
  "luminance": 0.0178
}

Semantic roles & 50–950 ramp

primary
#28165B
secondary
#7B923B
accent
#E444BA
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28165B

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

Preview Lab → · Contrast checker → · Palette generator →

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