#300C4C#300C4C

#300C4C is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.110 H 305.2°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#300C4C
RGBrgb(48, 12, 76)
HSLhsl(274, 73%, 17%)
HSVhsv(274, 84%, 30%)
CMYKcmyk(36.8%, 84.2%, 0%, 70.2%)
CIE-LABlab(12.04, 30.82, -31.65)
CIE-LCHlch(12.04, 44.18, 314.24°)
OKLaboklab(25.57% 0.0636 -0.0901)
OKLCHoklch(25.57% 0.11 305.2)
XYZxyz(2.6546, 1.4131, 6.9690)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300C4C #284C0C
analogous
#100C4C #300C4C #4C0C48
triadic
#300C4C #4C300C #0C4C30
tetradic
#300C4C #4C100C #284C0C #0C484C
square
#300C4C #4C100C #284C0C #0C484C
split-complementary
#300C4C #484C0C #0C4C10
monochromatic
#11041A #11041A #300C4C #511481 #731DB6

Accessibility & contrast

On white

16.37
#300C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#300C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300C4C
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300C4C#FFFFFF#000000##FFFFFF
##300C4C1.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #300c4c;
/* rgb */ color: rgb(48, 12, 76);
/* oklch */ color: oklch(25.6% 0.110 305.2);
Tailwind
colors: {
  custom: {
    50: '#6c4f7f',
    500: '#300c4c',
    950: '#000000',
  },
}
SCSS
$custom: #300c4c;
$custom-light: #6c4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#300c4c",
  "rgb": {
    "r": 48,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 273.75,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25569,
    "c": 0.11031,
    "h": 305.2
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#300C4C
secondary
#54882C
accent
#EF3888
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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