#28146A#28146A

#28146A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.138 H 284.2°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#28146A
RGBrgb(40, 20, 106)
HSLhsl(254, 68%, 25%)
HSVhsv(254, 81%, 42%)
CMYKcmyk(62.3%, 81.1%, 0%, 58.4%)
CIE-LABlab(15.44, 34.32, -46.30)
CIE-LCHlch(15.44, 57.63, 306.54°)
OKLaboklab(28.64% 0.0339 -0.1334)
OKLCHoklch(28.64% 0.138 284.2)
XYZxyz(3.7259, 1.9918, 13.8210)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28146A #566A14
analogous
#142B6A #28146A #53146A
triadic
#28146A #6A2814 #146A28
tetradic
#28146A #6A142B #566A14 #146A53
square
#28146A #6A142B #566A14 #146A53
split-complementary
#28146A #6A5314 #2B6A14
monochromatic
#0A051A #150A37 #28146A #3B1E9D #4F27D1

Accessibility & contrast

On white

15.02
#28146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#28146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28146A
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28146A#FFFFFF#000000##FFFFFF
##28146A1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002468
Tritanopia (blue-blind)
#012D3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28146a;
/* rgb */ color: rgb(40, 20, 106);
/* oklch */ color: oklch(28.6% 0.138 284.2);
Tailwind
colors: {
  custom: {
    50: '#6b5496',
    500: '#28146a',
    950: '#000000',
  },
}
SCSS
$custom: #28146a;
$custom-light: #6b5496;
$custom-dark: #000000;
JSON
{
  "hex": "#28146a",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 253.953,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28643,
    "c": 0.13766,
    "h": 284.2
  },
  "luminance": 0.01992
}

Semantic roles & 50–950 ramp

primary
#28146A
secondary
#89A139
accent
#EB3DC3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28146A

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

Preview Lab → · Contrast checker → · Palette generator →

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