#300239#300239

#300239 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.7% C 0.104 H 320.3°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#300239
RGBrgb(48, 2, 57)
HSLhsl(290, 93%, 12%)
HSVhsv(290, 96%, 22%)
CMYKcmyk(15.8%, 96.5%, 0%, 77.6%)
CIE-LABlab(8.72, 31.02, -23.61)
CIE-LCHlch(8.72, 38.98, 322.73°)
OKLaboklab(22.71% 0.0801 -0.0664)
OKLCHoklch(22.71% 0.104 320.3)
XYZxyz(1.9791, 0.9673, 3.9526)
Luminance0.0097 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300239 #0B3902
analogous
#150239 #300239 #390227
triadic
#300239 #393002 #023930
tetradic
#300239 #391502 #0B3902 #022739
square
#300239 #391502 #0B3902 #022739
split-complementary
#300239 #273902 #023915
monochromatic
#19011E #19011E #300239 #620474 #9406AF

Accessibility & contrast

On white

17.60
#300239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#300239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300239
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300239#FFFFFF#000000##FFFFFF
##3002391.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163A
Deuteranopia (green-blind)
#071A38
Tritanopia (blue-blind)
#300E1E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #300239;
/* rgb */ color: rgb(48, 2, 57);
/* oklch */ color: oklch(22.7% 0.104 320.3);
Tailwind
colors: {
  custom: {
    50: '#6b4970',
    500: '#300239',
    950: '#000000',
  },
}
SCSS
$custom: #300239;
$custom-light: #6b4970;
$custom-dark: #000000;
JSON
{
  "hex": "#300239",
  "rgb": {
    "r": 48,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 290.182,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22709,
    "c": 0.10401,
    "h": 320.3
  },
  "luminance": 0.00967
}

Semantic roles & 50–950 ramp

primary
#300239
secondary
#2A7D1A
accent
#FF294C
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #300239

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

Preview Lab → · Contrast checker → · Palette generator →

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