#300C4B#300C4B

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

Color values

HEX#300C4B
RGBrgb(48, 12, 75)
HSLhsl(274, 72%, 17%)
HSVhsv(274, 84%, 29%)
CMYKcmyk(36%, 84%, 0%, 70.6%)
CIE-LABlab(11.95, 30.55, -31.11)
CIE-LCHlch(11.95, 43.60, 314.49°)
OKLaboklab(25.48% 0.0639 -0.0885)
OKLCHoklch(25.48% 0.109 305.8)
XYZxyz(2.6201, 1.3993, 6.7873)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300C4B #274B0C
analogous
#110C4B #300C4B #4B0C47
triadic
#300C4B #4B300C #0C4B30
tetradic
#300C4B #4B110C #274B0C #0C474B
square
#300C4B #4B110C #274B0C #0C474B
split-complementary
#300C4B #474B0C #0C4B11
monochromatic
#11041A #11041A #300C4B #521480 #741DB5

Accessibility & contrast

On white

16.41
#300C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300C4B
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300C4B#FFFFFF#000000##FFFFFF
##300C4B1.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#2B1C2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #300c4b;
/* rgb */ color: rgb(48, 12, 75);
/* oklch */ color: oklch(25.5% 0.109 305.8);
Tailwind
colors: {
  custom: {
    50: '#6c4f7e',
    500: '#300c4b',
    950: '#000000',
  },
}
SCSS
$custom: #300c4b;
$custom-light: #6c4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#300c4b",
  "rgb": {
    "r": 48,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 274.286,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25476,
    "c": 0.10916,
    "h": 305.8
  },
  "luminance": 0.01399
}

Semantic roles & 50–950 ramp

primary
#300C4B
secondary
#53872C
accent
#EF3987
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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