#300B4A#300B4A

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

Color values

HEX#300B4A
RGBrgb(48, 11, 74)
HSLhsl(275, 74%, 17%)
HSVhsv(275, 85%, 29%)
CMYKcmyk(35.1%, 85.1%, 0%, 71%)
CIE-LABlab(11.70, 30.75, -30.82)
CIE-LCHlch(11.70, 43.53, 314.93°)
OKLaboklab(25.27% 0.0652 -0.0877)
OKLCHoklch(25.27% 0.109 306.6)
XYZxyz(2.5744, 1.3622, 6.6045)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300B4A #254A0B
analogous
#110B4A #300B4A #4A0B45
triadic
#300B4A #4A300B #0B4A30
tetradic
#300B4A #4A110B #254A0B #0B454A
square
#300B4A #4A110B #254A0B #0B454A
split-complementary
#300B4A #454A0B #0B4A11
monochromatic
#11041B #11041B #300B4A #53137F #751BB5

Accessibility & contrast

On white

16.50
#300B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300B4A
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300B4A#FFFFFF#000000##FFFFFF
##300B4A1.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001F49
Tritanopia (blue-blind)
#2B1B2A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #300b4a;
/* rgb */ color: rgb(48, 11, 74);
/* oklch */ color: oklch(25.3% 0.109 306.6);
Tailwind
colors: {
  custom: {
    50: '#6c4f7d',
    500: '#300b4a',
    950: '#000000',
  },
}
SCSS
$custom: #300b4a;
$custom-light: #6c4f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#300b4a",
  "rgb": {
    "r": 48,
    "g": 11,
    "b": 74
  },
  "hsl": {
    "h": 275.238,
    "s": 74.118,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25272,
    "c": 0.10924,
    "h": 306.6
  },
  "luminance": 0.01362
}

Semantic roles & 50–950 ramp

primary
#300B4A
secondary
#50862B
accent
#F13784
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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