#28135E#28135E

#28135E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.123 H 288.1°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#28135E
RGBrgb(40, 19, 94)
HSLhsl(257, 66%, 22%)
HSVhsv(257, 80%, 37%)
CMYKcmyk(57.4%, 79.8%, 0%, 63.1%)
CIE-LABlab(13.97, 31.04, -40.78)
CIE-LCHlch(13.97, 51.25, 307.28°)
OKLaboklab(27.22% 0.0382 -0.1173)
OKLCHoklch(27.22% 0.123 288.1)
XYZxyz(3.1277, 1.7249, 10.7556)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28135E #495E13
analogous
#13245E #28135E #4E135E
triadic
#28135E #5E2813 #135E28
tetradic
#28135E #5E1324 #495E13 #135E4E
square
#28135E #5E1324 #495E13 #135E4E
split-complementary
#28135E #5E4E13 #245E13
monochromatic
#0B0519 #12092B #28135E #3E1D91 #5328C4

Accessibility & contrast

On white

15.61
#28135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28135E
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28135E#FFFFFF#000000##FFFFFF
##28135E1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#122837
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28135e;
/* rgb */ color: rgb(40, 19, 94);
/* oklch */ color: oklch(27.2% 0.123 288.1);
Tailwind
colors: {
  custom: {
    50: '#69538c',
    500: '#28135e',
    950: '#000000',
  },
}
SCSS
$custom: #28135e;
$custom-light: #69538c;
$custom-dark: #000000;
JSON
{
  "hex": "#28135e",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 256.8,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27222,
    "c": 0.12334,
    "h": 288.1
  },
  "luminance": 0.01725
}

Semantic roles & 50–950 ramp

primary
#28135E
secondary
#7B9637
accent
#E93FB9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28135E

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

Preview Lab → · Contrast checker → · Palette generator →

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