#300940#300940

#300940 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.101 H 313.8°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#300940
RGBrgb(48, 9, 64)
HSLhsl(283, 75%, 14%)
HSVhsv(283, 86%, 25%)
CMYKcmyk(25%, 85.9%, 0%, 74.9%)
CIE-LABlab(10.51, 29.11, -25.73)
CIE-LCHlch(10.51, 38.85, 318.54°)
OKLaboklab(24.16% 0.0696 -0.0727)
OKLCHoklch(24.16% 0.101 313.8)
XYZxyz(2.2419, 1.1940, 4.9619)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300940 #194009
analogous
#150940 #300940 #400935
triadic
#300940 #403009 #094030
tetradic
#300940 #401509 #194009 #093540
square
#300940 #401509 #194009 #093540
split-complementary
#300940 #354009 #094015
monochromatic
#14041B #14041B #300940 #581176 #8018AB

Accessibility & contrast

On white

16.95
#300940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#300940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300940
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300940#FFFFFF#000000##FFFFFF
##3009401.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#051D3F
Tritanopia (blue-blind)
#2E1624
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #300940;
/* rgb */ color: rgb(48, 9, 64);
/* oklch */ color: oklch(24.2% 0.101 313.8);
Tailwind
colors: {
  custom: {
    50: '#6b4d75',
    500: '#300940',
    950: '#000000',
  },
}
SCSS
$custom: #300940;
$custom-light: #6b4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#300940",
  "rgb": {
    "r": 48,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 282.545,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24157,
    "c": 0.10064,
    "h": 313.8
  },
  "luminance": 0.01194
}

Semantic roles & 50–950 ramp

primary
#300940
secondary
#407E27
accent
#F2366D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #300940

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

Preview Lab → · Contrast checker → · Palette generator →

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