#300C48#300C48

#300C48 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.106 H 307.7°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#300C48
RGBrgb(48, 12, 72)
HSLhsl(276, 71%, 16%)
HSVhsv(276, 83%, 28%)
CMYKcmyk(33.3%, 83.3%, 0%, 71.8%)
CIE-LABlab(11.68, 29.76, -29.46)
CIE-LCHlch(11.68, 41.88, 315.30°)
OKLaboklab(25.2% 0.0646 -0.0837)
OKLCHoklch(25.2% 0.106 307.7)
XYZxyz(2.5198, 1.3592, 6.2592)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300C48 #24480C
analogous
#120C48 #300C48 #480C42
triadic
#300C48 #48300C #0C4830
tetradic
#300C48 #48120C #24480C #0C4248
square
#300C48 #48120C #24480C #0C4248
split-complementary
#300C48 #42480C #0C4812
monochromatic
#11041A #11041A #300C48 #53157C #761DB1

Accessibility & contrast

On white

16.51
#300C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300C48
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300C48#FFFFFF#000000##FFFFFF
##300C481.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#2C1B29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #300c48;
/* rgb */ color: rgb(48, 12, 72);
/* oklch */ color: oklch(25.2% 0.106 307.7);
Tailwind
colors: {
  custom: {
    50: '#6b4f7b',
    500: '#300c48',
    950: '#000000',
  },
}
SCSS
$custom: #300c48;
$custom-light: #6b4f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#300c48",
  "rgb": {
    "r": 48,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 276,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25201,
    "c": 0.10572,
    "h": 307.7
  },
  "luminance": 0.01359
}

Semantic roles & 50–950 ramp

primary
#300C48
secondary
#4F842C
accent
#EE3A82
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #300C48

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

Preview Lab → · Contrast checker → · Palette generator →

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