#28145D#28145D

#28145D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.121 H 288.1°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#28145D
RGBrgb(40, 20, 93)
HSLhsl(256, 65%, 22%)
HSVhsv(256, 78%, 36%)
CMYKcmyk(57%, 78.5%, 0%, 63.5%)
CIE-LABlab(14.07, 30.15, -39.95)
CIE-LCHlch(14.07, 50.05, 307.04°)
OKLaboklab(27.26% 0.0376 -0.1148)
OKLCHoklch(27.26% 0.121 288.1)
XYZxyz(3.1004, 1.7416, 10.5266)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28145D #495D14
analogous
#14255D #28145D #4D145D
triadic
#28145D #5D2814 #145D28
tetradic
#28145D #5D1425 #495D14 #145D4D
square
#28145D #5D1425 #495D14 #145D4D
split-complementary
#28145D #5D4D14 #255D14
monochromatic
#0B0519 #12092B #28145D #3E1F8F #532AC2

Accessibility & contrast

On white

15.57
#28145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#28145D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28145D
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28145D#FFFFFF#000000##FFFFFF
##28145D1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#132837
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28145d;
/* rgb */ color: rgb(40, 20, 93);
/* oklch */ color: oklch(27.3% 0.121 288.1);
Tailwind
colors: {
  custom: {
    50: '#69548c',
    500: '#28145d',
    950: '#000000',
  },
}
SCSS
$custom: #28145d;
$custom-light: #69548c;
$custom-dark: #000000;
JSON
{
  "hex": "#28145d",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 256.438,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27259,
    "c": 0.12085,
    "h": 288.1
  },
  "luminance": 0.01742
}

Semantic roles & 50–950 ramp

primary
#28145D
secondary
#7B9538
accent
#E840BA
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28145D

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

Preview Lab → · Contrast checker → · Palette generator →

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