#301040#301040

#301040 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.0% C 0.090 H 312.3°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#301040
RGBrgb(48, 16, 64)
HSLhsl(280, 60%, 16%)
HSVhsv(280, 75%, 25%)
CMYKcmyk(25%, 75%, 0%, 74.9%)
CIE-LABlab(11.75, 25.62, -23.73)
CIE-LCHlch(11.75, 34.92, 317.19°)
OKLaboklab(25.04% 0.061 -0.0669)
OKLCHoklch(25.04% 0.09 312.3)
XYZxyz(2.3295, 1.3692, 4.9911)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#301040 #204010
analogous
#181040 #301040 #401038
triadic
#301040 #403010 #104030
tetradic
#301040 #401810 #204010 #103840
square
#301040 #401810 #204010 #103840
split-complementary
#301040 #384010 #104018
monochromatic
#120618 #120618 #301040 #551C71 #7928A2

Accessibility & contrast

On white

16.49
#301040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#301040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #301040
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##301040#FFFFFF#000000##FFFFFF
##3010401.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#0C203F
Tritanopia (blue-blind)
#2E1A26
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #301040;
/* rgb */ color: rgb(48, 16, 64);
/* oklch */ color: oklch(25.0% 0.090 312.3);
Tailwind
colors: {
  custom: {
    50: '#6a5175',
    500: '#301040',
    950: '#000000',
  },
}
SCSS
$custom: #301040;
$custom-light: #6a5175;
$custom-dark: #000000;
JSON
{
  "hex": "#301040",
  "rgb": {
    "r": 48,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 280,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.2504,
    "c": 0.09049,
    "h": 312.3
  },
  "luminance": 0.01369
}

Semantic roles & 50–950 ramp

primary
#301040
secondary
#4A7A32
accent
#E34579
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #301040

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

Preview Lab → · Contrast checker → · Palette generator →

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