#28165D#28165D

#28165D is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.118 H 287.6°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#28165D
RGBrgb(40, 22, 93)
HSLhsl(255, 62%, 23%)
HSVhsv(255, 76%, 36%)
CMYKcmyk(57%, 76.3%, 0%, 63.5%)
CIE-LABlab(14.49, 28.99, -39.27)
CIE-LCHlch(14.49, 48.81, 306.43°)
OKLaboklab(27.56% 0.0357 -0.1129)
OKLCHoklch(27.56% 0.118 287.6)
XYZxyz(3.1372, 1.8151, 10.5388)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28165D #4B5D16
analogous
#16285D #28165D #4B165D
triadic
#28165D #5D2816 #165D28
tetradic
#28165D #5D1628 #4B5D16 #165D4B
square
#28165D #5D1628 #4B5D16 #165D4B
split-complementary
#28165D #5D4B16 #285D16
monochromatic
#0B0619 #130A2C #28165D #3D228E #532DC0

Accessibility & contrast

On white

15.41
#28165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28165D
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28165D#FFFFFF#000000##FFFFFF
##28165D1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#132938
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28165d;
/* rgb */ color: rgb(40, 22, 93);
/* oklch */ color: oklch(27.6% 0.118 287.6);
Tailwind
colors: {
  custom: {
    50: '#69558c',
    500: '#28165d',
    950: '#000000',
  },
}
SCSS
$custom: #28165d;
$custom-light: #69558c;
$custom-dark: #000000;
JSON
{
  "hex": "#28165d",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 255.211,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27555,
    "c": 0.11837,
    "h": 287.6
  },
  "luminance": 0.01815
}

Semantic roles & 50–950 ramp

primary
#28165D
secondary
#7D943B
accent
#E543BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28165D

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

Preview Lab → · Contrast checker → · Palette generator →

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