#300D4A#300D4A

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

Color values

HEX#300D4A
RGBrgb(48, 13, 74)
HSLhsl(274, 70%, 17%)
HSVhsv(274, 82%, 29%)
CMYKcmyk(35.1%, 82.4%, 0%, 71%)
CIE-LABlab(12.03, 29.81, -30.29)
CIE-LCHlch(12.03, 42.50, 314.55°)
OKLaboklab(25.5% 0.0631 -0.0861)
OKLCHoklch(25.5% 0.107 306.2)
XYZxyz(2.5986, 1.4107, 6.6126)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300D4A #274A0D
analogous
#110D4A #300D4A #4A0D46
triadic
#300D4A #4A300D #0D4A30
tetradic
#300D4A #4A110D #274A0D #0D464A
square
#300D4A #4A110D #274A0D #0D464A
split-complementary
#300D4A #464A0D #0D4A11
monochromatic
#11051A #11051A #300D4A #52167E #741FB2

Accessibility & contrast

On white

16.38
#300D4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300D4A
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300D4A#FFFFFF#000000##FFFFFF
##300D4A1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#2B1C2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300d4a;
/* rgb */ color: rgb(48, 13, 74);
/* oklch */ color: oklch(25.5% 0.107 306.2);
Tailwind
colors: {
  custom: {
    50: '#6c507d',
    500: '#300d4a',
    950: '#000000',
  },
}
SCSS
$custom: #300d4a;
$custom-light: #6c507d;
$custom-dark: #000000;
JSON
{
  "hex": "#300d4a",
  "rgb": {
    "r": 48,
    "g": 13,
    "b": 74
  },
  "hsl": {
    "h": 274.426,
    "s": 70.115,
    "l": 17.059
  },
  "oklch": {
    "l": 0.255,
    "c": 0.10675,
    "h": 306.2
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#300D4A
secondary
#53852E
accent
#ED3B87
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300D4A

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

Preview Lab → · Contrast checker → · Palette generator →

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