#28136D#28136D

#28136D is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.142 H 283.6°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#28136D
RGBrgb(40, 19, 109)
HSLhsl(254, 70%, 25%)
HSVhsv(254, 83%, 43%)
CMYKcmyk(63.3%, 82.6%, 0%, 57.3%)
CIE-LABlab(15.60, 35.79, -48.01)
CIE-LCHlch(15.60, 59.88, 306.70°)
OKLaboklab(28.85% 0.0336 -0.1384)
OKLCHoklch(28.85% 0.142 283.6)
XYZxyz(3.8674, 2.0207, 14.6513)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28136D #586D13
analogous
#132B6D #28136D #55136D
triadic
#28136D #6D2813 #136D28
tetradic
#28136D #6D132B #586D13 #136D55
square
#28136D #6D132B #586D13 #136D55
split-complementary
#28136D #6D5513 #2B6D13
monochromatic
#0A051A #150A39 #28136D #3B1CA1 #4E25D5

Accessibility & contrast

On white

14.96
#28136D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28136D
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28136D#FFFFFF#000000##FFFFFF
##28136D1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6F
Deuteranopia (green-blind)
#00246B
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28136d;
/* rgb */ color: rgb(40, 19, 109);
/* oklch */ color: oklch(28.8% 0.142 283.6);
Tailwind
colors: {
  custom: {
    50: '#6c5498',
    500: '#28136d',
    950: '#000000',
  },
}
SCSS
$custom: #28136d;
$custom-light: #6c5498;
$custom-dark: #000000;
JSON
{
  "hex": "#28136d",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 109
  },
  "hsl": {
    "h": 254,
    "s": 70.313,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28848,
    "c": 0.14243,
    "h": 283.6
  },
  "luminance": 0.02021
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28136D

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

Preview Lab → · Contrast checker → · Palette generator →

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