#28145C#28145C

#28145C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.120 H 288.5°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#28145C
RGBrgb(40, 20, 92)
HSLhsl(257, 64%, 22%)
HSVhsv(257, 78%, 36%)
CMYKcmyk(56.5%, 78.3%, 0%, 63.9%)
CIE-LABlab(13.97, 29.83, -39.45)
CIE-LCHlch(13.97, 49.46, 307.10°)
OKLaboklab(27.16% 0.0379 -0.1134)
OKLCHoklch(27.16% 0.12 288.5)
XYZxyz(3.0564, 1.7240, 10.2949)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28145C #485C14
analogous
#14245C #28145C #4C145C
triadic
#28145C #5C2814 #145C28
tetradic
#28145C #5C1424 #485C14 #145C4C
square
#28145C #5C1424 #485C14 #145C4C
split-complementary
#28145C #5C4C14 #245C14
monochromatic
#0B0519 #12092A #28145C #3E1F8E #542AC1

Accessibility & contrast

On white

15.62
#28145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#28145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28145C
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28145C#FFFFFF#000000##FFFFFF
##28145C1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#142736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28145c;
/* rgb */ color: rgb(40, 20, 92);
/* oklch */ color: oklch(27.2% 0.120 288.5);
Tailwind
colors: {
  custom: {
    50: '#69548b',
    500: '#28145c',
    950: '#000000',
  },
}
SCSS
$custom: #28145c;
$custom-light: #69548b;
$custom-dark: #000000;
JSON
{
  "hex": "#28145c",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 256.667,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27156,
    "c": 0.11953,
    "h": 288.5
  },
  "luminance": 0.01724
}

Semantic roles & 50–950 ramp

primary
#28145C
secondary
#7A9438
accent
#E741B9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28145C

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

Preview Lab → · Contrast checker → · Palette generator →

#28145C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva