#28136E#28136E

#28136E is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.144 H 283.4°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#28136E
RGBrgb(40, 19, 110)
HSLhsl(254, 71%, 25%)
HSVhsv(254, 83%, 43%)
CMYKcmyk(63.6%, 82.7%, 0%, 56.9%)
CIE-LABlab(15.71, 36.10, -48.48)
CIE-LCHlch(15.71, 60.44, 306.67°)
OKLaboklab(28.96% 0.0333 -0.1398)
OKLCHoklch(28.96% 0.144 283.4)
XYZxyz(3.9215, 2.0424, 14.9364)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28136E #596E13
analogous
#132B6E #28136E #55136E
triadic
#28136E #6E2813 #136E28
tetradic
#28136E #6E132B #596E13 #136E55
square
#28136E #6E132B #596E13 #136E55
split-complementary
#28136E #6E5513 #2B6E13
monochromatic
#09051A #150A3A #28136E #3B1CA2 #4E25D6

Accessibility & contrast

On white

14.91
#28136E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#28136E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28136E
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28136E#FFFFFF#000000##FFFFFF
##28136E1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28136e;
/* rgb */ color: rgb(40, 19, 110);
/* oklch */ color: oklch(29.0% 0.144 283.4);
Tailwind
colors: {
  custom: {
    50: '#6c5499',
    500: '#28136e',
    950: '#000000',
  },
}
SCSS
$custom: #28136e;
$custom-light: #6c5499;
$custom-dark: #000000;
JSON
{
  "hex": "#28136e",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 110
  },
  "hsl": {
    "h": 253.846,
    "s": 70.543,
    "l": 25.294
  },
  "oklch": {
    "l": 0.2896,
    "c": 0.14368,
    "h": 283.4
  },
  "luminance": 0.02043
}

Semantic roles & 50–950 ramp

primary
#28136E
secondary
#8CA538
accent
#ED3AC4
background
#F6F5F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28136E

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

Preview Lab → · Contrast checker → · Palette generator →

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