#28146C#28146C

#28146C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.140 H 283.7°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#28146C
RGBrgb(40, 20, 108)
HSLhsl(254, 69%, 25%)
HSVhsv(254, 81%, 42%)
CMYKcmyk(63%, 81.5%, 0%, 57.6%)
CIE-LABlab(15.66, 34.95, -47.25)
CIE-LCHlch(15.66, 58.77, 306.49°)
OKLaboklab(28.86% 0.0332 -0.1362)
OKLCHoklch(28.86% 0.14 283.7)
XYZxyz(3.8312, 2.0339, 14.3751)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28146C #586C14
analogous
#142C6C #28146C #54146C
triadic
#28146C #6C2814 #146C28
tetradic
#28146C #6C142C #586C14 #146C54
square
#28146C #6C142C #586C14 #146C54
split-complementary
#28146C #6C5414 #2C6C14
monochromatic
#0A051A #150A38 #28146C #3B1EA0 #4E27D3

Accessibility & contrast

On white

14.93
#28146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28146C
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28146C#FFFFFF#000000##FFFFFF
##28146C1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28146c;
/* rgb */ color: rgb(40, 20, 108);
/* oklch */ color: oklch(28.9% 0.140 283.7);
Tailwind
colors: {
  custom: {
    50: '#6c5597',
    500: '#28146c',
    950: '#000000',
  },
}
SCSS
$custom: #28146c;
$custom-light: #6c5597;
$custom-dark: #000000;
JSON
{
  "hex": "#28146c",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 253.636,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28862,
    "c": 0.14019,
    "h": 283.7
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28146C

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

Preview Lab → · Contrast checker → · Palette generator →

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