#300D4B#300D4B

#300D4B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.108 H 305.6°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#300D4B
RGBrgb(48, 13, 75)
HSLhsl(274, 70%, 17%)
HSVhsv(274, 83%, 29%)
CMYKcmyk(36%, 82.7%, 0%, 70.6%)
CIE-LABlab(12.12, 30.08, -30.84)
CIE-LCHlch(12.12, 43.08, 314.29°)
OKLaboklab(25.59% 0.0628 -0.0877)
OKLCHoklch(25.59% 0.108 305.6)
XYZxyz(2.6326, 1.4242, 6.7915)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300D4B #284B0D
analogous
#110D4B #300D4B #4B0D47
triadic
#300D4B #4B300D #0D4B30
tetradic
#300D4B #4B110D #284B0D #0D474B
square
#300D4B #4B110D #284B0D #0D474B
split-complementary
#300D4B #474B0D #0D4B11
monochromatic
#11051A #11051A #300D4B #51167F #731FB3

Accessibility & contrast

On white

16.34
#300D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300D4B
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300D4B#FFFFFF#000000##FFFFFF
##300D4B1.0016.341.2816.34
#FFFFFF16.341.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#2B1C2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300d4b;
/* rgb */ color: rgb(48, 13, 75);
/* oklch */ color: oklch(25.6% 0.108 305.6);
Tailwind
colors: {
  custom: {
    50: '#6c507e',
    500: '#300d4b',
    950: '#000000',
  },
}
SCSS
$custom: #300d4b;
$custom-light: #6c507e;
$custom-dark: #000000;
JSON
{
  "hex": "#300d4b",
  "rgb": {
    "r": 48,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 273.871,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25592,
    "c": 0.10791,
    "h": 305.6
  },
  "luminance": 0.01424
}

Semantic roles & 50–950 ramp

primary
#300D4B
secondary
#54862E
accent
#ED3B88
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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