#28136A#28136A

#28136A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.139 H 284.4°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#28136A
RGBrgb(40, 19, 106)
HSLhsl(254, 70%, 25%)
HSVhsv(254, 82%, 42%)
CMYKcmyk(62.3%, 82.1%, 0%, 58.4%)
CIE-LABlab(15.26, 34.84, -46.60)
CIE-LCHlch(15.26, 58.19, 306.79°)
OKLaboklab(28.52% 0.0346 -0.1343)
OKLCHoklch(28.52% 0.139 284.4)
XYZxyz(3.7087, 1.9572, 13.8152)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28136A #556A13
analogous
#13296A #28136A #54136A
triadic
#28136A #6A2813 #136A28
tetradic
#28136A #6A1329 #556A13 #136A54
square
#28136A #6A1329 #556A13 #136A54
split-complementary
#28136A #6A5413 #296A13
monochromatic
#0A051A #140A36 #28136A #3C1C9E #4F26D2

Accessibility & contrast

On white

15.09
#28136A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#28136A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28136A
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28136A#FFFFFF#000000##FFFFFF
##28136A1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#012C3E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #28136a;
/* rgb */ color: rgb(40, 19, 106);
/* oklch */ color: oklch(28.5% 0.139 284.4);
Tailwind
colors: {
  custom: {
    50: '#6b5496',
    500: '#28136a',
    950: '#000000',
  },
}
SCSS
$custom: #28136a;
$custom-light: #6b5496;
$custom-dark: #000000;
JSON
{
  "hex": "#28136a",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 106
  },
  "hsl": {
    "h": 254.483,
    "s": 69.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28515,
    "c": 0.13868,
    "h": 284.4
  },
  "luminance": 0.01957
}

Semantic roles & 50–950 ramp

primary
#28136A
secondary
#88A138
accent
#EC3BC2
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28136A

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

Preview Lab → · Contrast checker → · Palette generator →

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