#28185A#28185A

#28185A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.112 H 287.9°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#28185A
RGBrgb(40, 24, 90)
HSLhsl(255, 58%, 22%)
HSVhsv(255, 73%, 35%)
CMYKcmyk(55.6%, 73.3%, 0%, 64.7%)
CIE-LABlab(14.64, 26.77, -37.01)
CIE-LCHlch(14.64, 45.68, 305.88°)
OKLaboklab(27.57% 0.0343 -0.1062)
OKLCHoklch(27.57% 0.112 287.9)
XYZxyz(3.0466, 1.8424, 9.8660)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28185A #4A5A18
analogous
#18295A #28185A #49185A
triadic
#28185A #5A2818 #185A28
tetradic
#28185A #5A1829 #4A5A18 #185A49
square
#28185A #5A1829 #4A5A18 #185A49
split-complementary
#28185A #5A4918 #295A18
monochromatic
#0B0618 #130B2A #28185A #3D258A #5332BB

Accessibility & contrast

On white

15.34
#28185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#28185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28185A
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28185A#FFFFFF#000000##FFFFFF
##28185A1.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#152936
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28185a;
/* rgb */ color: rgb(40, 24, 90);
/* oklch */ color: oklch(27.6% 0.112 287.9);
Tailwind
colors: {
  custom: {
    50: '#685689',
    500: '#28185a',
    950: '#000000',
  },
}
SCSS
$custom: #28185a;
$custom-light: #685689;
$custom-dark: #000000;
JSON
{
  "hex": "#28185a",
  "rgb": {
    "r": 40,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 254.545,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27574,
    "c": 0.11164,
    "h": 287.9
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#28185A
secondary
#7C913D
accent
#E147BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #28185A

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

Preview Lab → · Contrast checker → · Palette generator →

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