#300540#300540

#300540 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.106 H 314.5°. Best body text is #FFFFFF at 17.19:1 contrast (WCAG AA passes).

Color values

HEX#300540
RGBrgb(48, 5, 64)
HSLhsl(284, 86%, 14%)
HSVhsv(284, 92%, 25%)
CMYKcmyk(25%, 92.2%, 0%, 74.9%)
CIE-LABlab(9.85, 31.02, -26.79)
CIE-LCHlch(9.85, 40.99, 319.18°)
OKLaboklab(23.7% 0.0743 -0.0758)
OKLCHoklch(23.7% 0.106 314.5)
XYZxyz(2.1985, 1.1072, 4.9474)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300540 #154005
analogous
#120540 #300540 #400532
triadic
#300540 #403005 #054030
tetradic
#300540 #401205 #154005 #053240
square
#300540 #401205 #154005 #053240
split-complementary
#300540 #324005 #054012
monochromatic
#15021C #15021C #300540 #5B0979 #850EB2

Accessibility & contrast

On white

17.19
#300540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#300540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300540
17.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300540#FFFFFF#000000##FFFFFF
##3005401.0017.191.2217.19
#FFFFFF17.191.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#021C3F
Tritanopia (blue-blind)
#2E1323
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #300540;
/* rgb */ color: rgb(48, 5, 64);
/* oklch */ color: oklch(23.7% 0.106 314.5);
Tailwind
colors: {
  custom: {
    50: '#6b4b75',
    500: '#300540',
    950: '#000000',
  },
}
SCSS
$custom: #300540;
$custom-light: #6b4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#300540",
  "rgb": {
    "r": 48,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 283.729,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.23695,
    "c": 0.10615,
    "h": 314.5
  },
  "luminance": 0.01107
}

Semantic roles & 50–950 ramp

primary
#300540
secondary
#3A8120
accent
#FC2C64
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #300540

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

Preview Lab → · Contrast checker → · Palette generator →

#300540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva