#300A4C#300A4C

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

Color values

HEX#300A4C
RGBrgb(48, 10, 76)
HSLhsl(275, 77%, 17%)
HSVhsv(275, 87%, 30%)
CMYKcmyk(36.8%, 86.8%, 0%, 70.2%)
CIE-LABlab(11.74, 31.70, -32.15)
CIE-LCHlch(11.74, 45.15, 314.60°)
OKLaboklab(25.35% 0.0656 -0.0916)
OKLCHoklch(25.35% 0.113 305.6)
XYZxyz(2.6317, 1.3673, 6.9613)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300A4C #264C0A
analogous
#0F0A4C #300A4C #4C0A47
triadic
#300A4C #4C300A #0A4C30
tetradic
#300A4C #4C0F0A #264C0A #0A474C
square
#300A4C #4C0F0A #264C0A #0A474C
split-complementary
#300A4C #474C0A #0A4C0F
monochromatic
#11041B #11041B #300A4C #521182 #7418B8

Accessibility & contrast

On white

16.49
#300A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300A4C
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300A4C#FFFFFF#000000##FFFFFF
##300A4C1.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001F4B
Tritanopia (blue-blind)
#2B1B2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #300a4c;
/* rgb */ color: rgb(48, 10, 76);
/* oklch */ color: oklch(25.4% 0.113 305.6);
Tailwind
colors: {
  custom: {
    50: '#6c4e7f',
    500: '#300a4c',
    950: '#000000',
  },
}
SCSS
$custom: #300a4c;
$custom-light: #6c4e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#300a4c",
  "rgb": {
    "r": 48,
    "g": 10,
    "b": 76
  },
  "hsl": {
    "h": 274.545,
    "s": 76.744,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25354,
    "c": 0.11262,
    "h": 305.6
  },
  "luminance": 0.01367
}

Semantic roles & 50–950 ramp

primary
#300A4C
secondary
#528929
accent
#F33585
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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