#28136F#28136F

#28136F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.145 H 283.1°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#28136F
RGBrgb(40, 19, 111)
HSLhsl(254, 71%, 25%)
HSVhsv(254, 83%, 44%)
CMYKcmyk(64%, 82.9%, 0%, 56.5%)
CIE-LABlab(15.82, 36.41, -48.94)
CIE-LCHlch(15.82, 61.00, 306.65°)
OKLaboklab(29.07% 0.0329 -0.1411)
OKLCHoklch(29.07% 0.145 283.1)
XYZxyz(3.9763, 2.0643, 15.2248)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28136F #5A6F13
analogous
#132C6F #28136F #56136F
triadic
#28136F #6F2813 #136F28
tetradic
#28136F #6F132C #5A6F13 #136F56
square
#28136F #6F132C #5A6F13 #136F56
split-complementary
#28136F #6F5613 #2C6F13
monochromatic
#09041A #150A3B #28136F #3B1CA3 #4E25D8

Accessibility & contrast

On white

14.86
#28136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28136F
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28136F#FFFFFF#000000##FFFFFF
##28136F1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28136f;
/* rgb */ color: rgb(40, 19, 111);
/* oklch */ color: oklch(29.1% 0.145 283.1);
Tailwind
colors: {
  custom: {
    50: '#6d5499',
    500: '#28136f',
    950: '#000000',
  },
}
SCSS
$custom: #28136f;
$custom-light: #6d5499;
$custom-dark: #000000;
JSON
{
  "hex": "#28136f",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 253.696,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29072,
    "c": 0.14492,
    "h": 283.1
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#28136F
secondary
#8DA638
accent
#EE3AC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28136F

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

Preview Lab → · Contrast checker → · Palette generator →

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