#28146D#28146D

#28146D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.141 H 283.5°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#28146D
RGBrgb(40, 20, 109)
HSLhsl(253, 69%, 25%)
HSVhsv(253, 82%, 43%)
CMYKcmyk(63.3%, 81.7%, 0%, 57.3%)
CIE-LABlab(15.77, 35.27, -47.72)
CIE-LCHlch(15.77, 59.34, 306.47°)
OKLaboklab(28.97% 0.0329 -0.1376)
OKLCHoklch(28.97% 0.141 283.5)
XYZxyz(3.8847, 2.0553, 14.6570)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28146D #596D14
analogous
#142D6D #28146D #54146D
triadic
#28146D #6D2814 #146D28
tetradic
#28146D #6D142D #596D14 #146D54
square
#28146D #6D142D #596D14 #146D54
split-complementary
#28146D #6D5414 #2D6D14
monochromatic
#09051A #150B39 #28146D #3B1DA1 #4E27D4

Accessibility & contrast

On white

14.88
#28146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#28146D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28146D
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28146D#FFFFFF#000000##FFFFFF
##28146D1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.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: #28146d;
/* rgb */ color: rgb(40, 20, 109);
/* oklch */ color: oklch(29.0% 0.141 283.5);
Tailwind
colors: {
  custom: {
    50: '#6c5598',
    500: '#28146d',
    950: '#000000',
  },
}
SCSS
$custom: #28146d;
$custom-light: #6c5598;
$custom-dark: #000000;
JSON
{
  "hex": "#28146d",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 253.483,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28973,
    "c": 0.14144,
    "h": 283.5
  },
  "luminance": 0.02056
}

Semantic roles & 50–950 ramp

primary
#28146D
secondary
#8CA439
accent
#EC3CC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28146D

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

Preview Lab → · Contrast checker → · Palette generator →

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