#28146E#28146E

#28146E is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.143 H 283.2°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#28146E
RGBrgb(40, 20, 110)
HSLhsl(253, 69%, 25%)
HSVhsv(253, 82%, 43%)
CMYKcmyk(63.6%, 81.8%, 0%, 56.9%)
CIE-LABlab(15.89, 35.59, -48.19)
CIE-LCHlch(15.89, 59.90, 306.45°)
OKLaboklab(29.08% 0.0326 -0.1389)
OKLCHoklch(29.08% 0.143 283.2)
XYZxyz(3.9388, 2.0769, 14.9422)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28146E #5A6E14
analogous
#142D6E #28146E #55146E
triadic
#28146E #6E2814 #146E28
tetradic
#28146E #6E142D #5A6E14 #146E55
square
#28146E #6E142D #5A6E14 #146E55
split-complementary
#28146E #6E5514 #2D6E14
monochromatic
#09051A #150B3A #28146E #3B1DA2 #4E27D6

Accessibility & contrast

On white

14.84
#28146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#28146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28146E
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28146E#FFFFFF#000000##FFFFFF
##28146E1.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28146e;
/* rgb */ color: rgb(40, 20, 110);
/* oklch */ color: oklch(29.1% 0.143 283.2);
Tailwind
colors: {
  custom: {
    50: '#6c5599',
    500: '#28146e',
    950: '#000000',
  },
}
SCSS
$custom: #28146e;
$custom-light: #6c5599;
$custom-dark: #000000;
JSON
{
  "hex": "#28146e",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 253.333,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29084,
    "c": 0.14271,
    "h": 283.2
  },
  "luminance": 0.02077
}

Semantic roles & 50–950 ramp

primary
#28146E
secondary
#8DA539
accent
#EC3CC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #28146E

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

Preview Lab → · Contrast checker → · Palette generator →

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