#28145E#28145E

#28145E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.4% C 0.122 H 287.8°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#28145E
RGBrgb(40, 20, 94)
HSLhsl(256, 65%, 22%)
HSVhsv(256, 79%, 37%)
CMYKcmyk(57.4%, 78.7%, 0%, 63.1%)
CIE-LABlab(14.17, 30.48, -40.45)
CIE-LCHlch(14.17, 50.65, 306.99°)
OKLaboklab(27.36% 0.0373 -0.1163)
OKLCHoklch(27.36% 0.122 287.8)
XYZxyz(3.1450, 1.7594, 10.7614)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28145E #4A5E14
analogous
#14255E #28145E #4D145E
triadic
#28145E #5E2814 #145E28
tetradic
#28145E #5E1425 #4A5E14 #145E4D
square
#28145E #5E1425 #4A5E14 #145E4D
split-complementary
#28145E #5E4D14 #255E14
monochromatic
#0B0519 #13092C #28145E #3D1F90 #5329C3

Accessibility & contrast

On white

15.53
#28145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28145E
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28145E#FFFFFF#000000##FFFFFF
##28145E1.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)
#002660
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#122838
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28145e;
/* rgb */ color: rgb(40, 20, 94);
/* oklch */ color: oklch(27.4% 0.122 287.8);
Tailwind
colors: {
  custom: {
    50: '#69548c',
    500: '#28145e',
    950: '#000000',
  },
}
SCSS
$custom: #28145e;
$custom-light: #69548c;
$custom-dark: #000000;
JSON
{
  "hex": "#28145e",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 256.216,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27362,
    "c": 0.12216,
    "h": 287.8
  },
  "luminance": 0.0176
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28145E

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

Preview Lab → · Contrast checker → · Palette generator →

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