#28165A#28165A

#28165A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.114 H 288.6°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#28165A
RGBrgb(40, 22, 90)
HSLhsl(256, 61%, 22%)
HSVhsv(256, 76%, 35%)
CMYKcmyk(55.6%, 75.6%, 0%, 64.7%)
CIE-LABlab(14.19, 28.00, -37.74)
CIE-LCHlch(14.19, 46.99, 306.58°)
OKLaboklab(27.25% 0.0364 -0.1084)
OKLCHoklch(27.25% 0.114 288.6)
XYZxyz(3.0069, 1.7630, 9.8527)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28165A #485A16
analogous
#16265A #28165A #4A165A
triadic
#28165A #5A2816 #165A28
tetradic
#28165A #5A1626 #485A16 #165A4A
square
#28165A #5A1626 #485A16 #165A4A
split-complementary
#28165A #5A4A16 #265A16
monochromatic
#0B0619 #120A29 #28165A #3E228B #542EBC

Accessibility & contrast

On white

15.53
#28165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#28165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28165A
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28165A#FFFFFF#000000##FFFFFF
##28165A1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#152836
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28165a;
/* rgb */ color: rgb(40, 22, 90);
/* oklch */ color: oklch(27.3% 0.114 288.6);
Tailwind
colors: {
  custom: {
    50: '#685589',
    500: '#28165a',
    950: '#000000',
  },
}
SCSS
$custom: #28165a;
$custom-light: #685589;
$custom-dark: #000000;
JSON
{
  "hex": "#28165a",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 255.882,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27254,
    "c": 0.11432,
    "h": 288.6
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28165A

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

Preview Lab → · Contrast checker → · Palette generator →

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