#28145F#28145F

#28145F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.123 H 287.5°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#28145F
RGBrgb(40, 20, 95)
HSLhsl(256, 65%, 23%)
HSVhsv(256, 79%, 37%)
CMYKcmyk(57.9%, 78.9%, 0%, 62.7%)
CIE-LABlab(14.27, 30.80, -40.95)
CIE-LCHlch(14.27, 51.24, 306.95°)
OKLaboklab(27.47% 0.0371 -0.1178)
OKLCHoklch(27.47% 0.123 287.5)
XYZxyz(3.1902, 1.7775, 10.9992)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28145F #4B5F14
analogous
#14265F #28145F #4D145F
triadic
#28145F #5F2814 #145F28
tetradic
#28145F #5F1426 #4B5F14 #145F4D
square
#28145F #5F1426 #4B5F14 #145F4D
split-complementary
#28145F #5F4D14 #265F14
monochromatic
#0B0519 #13092C #28145F #3D1F92 #5329C4

Accessibility & contrast

On white

15.49
#28145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#28145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28145F
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28145F#FFFFFF#000000##FFFFFF
##28145F1.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)
#002661
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#112938
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28145f;
/* rgb */ color: rgb(40, 20, 95);
/* oklch */ color: oklch(27.5% 0.123 287.5);
Tailwind
colors: {
  custom: {
    50: '#69548d',
    500: '#28145f',
    950: '#000000',
  },
}
SCSS
$custom: #28145f;
$custom-light: #69548d;
$custom-dark: #000000;
JSON
{
  "hex": "#28145f",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 256,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27466,
    "c": 0.12347,
    "h": 287.5
  },
  "luminance": 0.01778
}

Semantic roles & 50–950 ramp

primary
#28145F
secondary
#7D9738
accent
#E840BB
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28145F

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

Preview Lab → · Contrast checker → · Palette generator →

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