#300338#300338

#300338 is a very dark, moderate purple. Relative luminance 0.010; OKLCH L 22.8% C 0.101 H 321.0°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#300338
RGBrgb(48, 3, 56)
HSLhsl(291, 90%, 12%)
HSVhsv(291, 95%, 22%)
CMYKcmyk(14.3%, 94.6%, 0%, 78%)
CIE-LABlab(8.82, 30.27, -22.72)
CIE-LCHlch(8.82, 37.85, 323.10°)
OKLaboklab(22.75% 0.0789 -0.0638)
OKLCHoklch(22.75% 0.101 321)
XYZxyz(1.9652, 0.9791, 3.8261)
Luminance0.0098 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300338 #0B3803
analogous
#160338 #300338 #380326
triadic
#300338 #383003 #033830
tetradic
#300338 #381603 #0B3803 #032638
square
#300338 #381603 #0B3803 #032638
split-complementary
#300338 #263803 #033816
monochromatic
#19021D #19021D #300338 #620672 #9409AC

Accessibility & contrast

On white

17.56
#300338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300338
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300338#FFFFFF#000000##FFFFFF
##3003381.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001639
Deuteranopia (green-blind)
#091B37
Tritanopia (blue-blind)
#300E1E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #300338;
/* rgb */ color: rgb(48, 3, 56);
/* oklch */ color: oklch(22.8% 0.101 321.0);
Tailwind
colors: {
  custom: {
    50: '#6b4a6f',
    500: '#300338',
    950: '#000000',
  },
}
SCSS
$custom: #300338;
$custom-light: #6b4a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#300338",
  "rgb": {
    "r": 48,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 290.943,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.22752,
    "c": 0.10143,
    "h": 321
  },
  "luminance": 0.00979
}

Semantic roles & 50–950 ramp

primary
#300338
secondary
#2A7B1C
accent
#FF2949
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #300338

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

Preview Lab → · Contrast checker → · Palette generator →

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