#300D4C#300D4C

#300D4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.109 H 305.0°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#300D4C
RGBrgb(48, 13, 76)
HSLhsl(273, 71%, 17%)
HSVhsv(273, 83%, 30%)
CMYKcmyk(36.8%, 82.9%, 0%, 70.2%)
CIE-LABlab(12.21, 30.35, -31.38)
CIE-LCHlch(12.21, 43.66, 314.04°)
OKLaboklab(25.68% 0.0626 -0.0893)
OKLCHoklch(25.68% 0.109 305)
XYZxyz(2.6671, 1.4380, 6.9731)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300D4C #294C0D
analogous
#100D4C #300D4C #4C0D49
triadic
#300D4C #4C300D #0D4C30
tetradic
#300D4C #4C100D #294C0D #0D494C
square
#300D4C #4C100D #294C0D #0D494C
split-complementary
#300D4C #494C0D #0D4C10
monochromatic
#11041A #11041A #300D4C #511680 #721FB5

Accessibility & contrast

On white

16.31
#300D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#300D4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300D4C
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300D4C#FFFFFF#000000##FFFFFF
##300D4C1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#2B1D2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300d4c;
/* rgb */ color: rgb(48, 13, 76);
/* oklch */ color: oklch(25.7% 0.109 305.0);
Tailwind
colors: {
  custom: {
    50: '#6c507f',
    500: '#300d4c',
    950: '#000000',
  },
}
SCSS
$custom: #300d4c;
$custom-light: #6c507f;
$custom-dark: #000000;
JSON
{
  "hex": "#300d4c",
  "rgb": {
    "r": 48,
    "g": 13,
    "b": 76
  },
  "hsl": {
    "h": 273.333,
    "s": 70.787,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25684,
    "c": 0.10908,
    "h": 305
  },
  "luminance": 0.01438
}

Semantic roles & 50–950 ramp

primary
#300D4C
secondary
#55872E
accent
#EE3A8A
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300D4C

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

Preview Lab → · Contrast checker → · Palette generator →

#300D4C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva