#300538#300538

#300538 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 23.0% C 0.098 H 320.8°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#300538
RGBrgb(48, 5, 56)
HSLhsl(291, 84%, 12%)
HSVhsv(291, 91%, 22%)
CMYKcmyk(14.3%, 91.1%, 0%, 78%)
CIE-LABlab(9.18, 29.21, -22.14)
CIE-LCHlch(9.18, 36.65, 322.84°)
OKLaboklab(23.01% 0.0761 -0.0621)
OKLCHoklch(23.01% 0.098 320.8)
XYZxyz(1.9869, 1.0226, 3.8333)
Luminance0.0102 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300538 #0D3805
analogous
#170538 #300538 #380527
triadic
#300538 #383005 #053830
tetradic
#300538 #381705 #0D3805 #052738
square
#300538 #381705 #0D3805 #052738
split-complementary
#300538 #273805 #053817
monochromatic
#18031C #18031C #300538 #600A70 #900FA8

Accessibility & contrast

On white

17.44
#300538 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#300538 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300538
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300538#FFFFFF#000000##FFFFFF
##3005381.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#0A1B37
Tritanopia (blue-blind)
#300F1E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #300538;
/* rgb */ color: rgb(48, 5, 56);
/* oklch */ color: oklch(23.0% 0.098 320.8);
Tailwind
colors: {
  custom: {
    50: '#6b4b6f',
    500: '#300538',
    950: '#000000',
  },
}
SCSS
$custom: #300538;
$custom-light: #6b4b6f;
$custom-dark: #000000;
JSON
{
  "hex": "#300538",
  "rgb": {
    "r": 48,
    "g": 5,
    "b": 56
  },
  "hsl": {
    "h": 290.588,
    "s": 83.607,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23006,
    "c": 0.0982,
    "h": 320.8
  },
  "luminance": 0.01022
}

Semantic roles & 50–950 ramp

primary
#300538
secondary
#2E7920
accent
#FA2E4E
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #300538

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

Preview Lab → · Contrast checker → · Palette generator →

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