#300C47#300C47

#300C47 is a dark, moderate violet. Relative luminance 0.013; OKLCH L 25.1% C 0.105 H 308.3°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#300C47
RGBrgb(48, 12, 71)
HSLhsl(277, 71%, 16%)
HSVhsv(277, 83%, 28%)
CMYKcmyk(32.4%, 83.1%, 0%, 72.2%)
CIE-LABlab(11.60, 29.50, -28.90)
CIE-LCHlch(11.60, 41.30, 315.59°)
OKLaboklab(25.11% 0.0649 -0.082)
OKLCHoklch(25.11% 0.105 308.3)
XYZxyz(2.4875, 1.3463, 6.0888)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300C47 #23470C
analogous
#130C47 #300C47 #470C41
triadic
#300C47 #47300C #0C4730
tetradic
#300C47 #47130C #23470C #0C4147
square
#300C47 #47130C #23470C #0C4147
split-complementary
#300C47 #41470C #0C4713
monochromatic
#12041A #12041A #300C47 #53157B #771EB0

Accessibility & contrast

On white

16.55
#300C47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#300C47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300C47
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300C47#FFFFFF#000000##FFFFFF
##300C471.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001F46
Tritanopia (blue-blind)
#2C1A29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #300c47;
/* rgb */ color: rgb(48, 12, 71);
/* oklch */ color: oklch(25.1% 0.105 308.3);
Tailwind
colors: {
  custom: {
    50: '#6b4f7b',
    500: '#300c47',
    950: '#000000',
  },
}
SCSS
$custom: #300c47;
$custom-light: #6b4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#300c47",
  "rgb": {
    "r": 48,
    "g": 12,
    "b": 71
  },
  "hsl": {
    "h": 276.61,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25112,
    "c": 0.10458,
    "h": 308.3
  },
  "luminance": 0.01346
}

Semantic roles & 50–950 ramp

primary
#300C47
secondary
#4E832C
accent
#EE3A80
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #300C47

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

Preview Lab → · Contrast checker → · Palette generator →

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