#28136C#28136C

#28136C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.141 H 283.9°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#28136C
RGBrgb(40, 19, 108)
HSLhsl(254, 70%, 25%)
HSVhsv(254, 82%, 42%)
CMYKcmyk(63%, 82.4%, 0%, 57.6%)
CIE-LABlab(15.48, 35.47, -47.54)
CIE-LCHlch(15.48, 59.32, 306.73°)
OKLaboklab(28.74% 0.0339 -0.137)
OKLCHoklch(28.74% 0.141 283.9)
XYZxyz(3.8139, 1.9993, 14.3694)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28136C #576C13
analogous
#132B6C #28136C #54136C
triadic
#28136C #6C2813 #136C28
tetradic
#28136C #6C132B #576C13 #136C54
square
#28136C #6C132B #576C13 #136C54
split-complementary
#28136C #6C5413 #2B6C13
monochromatic
#0A051A #150A38 #28136C #3B1CA0 #4F25D4

Accessibility & contrast

On white

15.00
#28136C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#28136C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28136C
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28136C#FFFFFF#000000##FFFFFF
##28136C1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#002D3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28136c;
/* rgb */ color: rgb(40, 19, 108);
/* oklch */ color: oklch(28.7% 0.141 283.9);
Tailwind
colors: {
  custom: {
    50: '#6c5497',
    500: '#28136c',
    950: '#000000',
  },
}
SCSS
$custom: #28136c;
$custom-light: #6c5497;
$custom-dark: #000000;
JSON
{
  "hex": "#28136c",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 108
  },
  "hsl": {
    "h": 254.157,
    "s": 70.079,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28737,
    "c": 0.14119,
    "h": 283.9
  },
  "luminance": 0.02
}

Semantic roles & 50–950 ramp

primary
#28136C
secondary
#8AA338
accent
#ED3BC3
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28136C

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

Preview Lab → · Contrast checker → · Palette generator →

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