#300B4C#300B4C

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

Color values

HEX#300B4C
RGBrgb(48, 11, 76)
HSLhsl(274, 75%, 17%)
HSVhsv(274, 86%, 30%)
CMYKcmyk(36.8%, 85.5%, 0%, 70.2%)
CIE-LABlab(11.89, 31.27, -31.90)
CIE-LCHlch(11.89, 44.67, 314.43°)
OKLaboklab(25.46% 0.0646 -0.0908)
OKLCHoklch(25.46% 0.111 305.4)
XYZxyz(2.6428, 1.3895, 6.9651)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300B4C #274C0B
analogous
#100B4C #300B4C #4C0B48
triadic
#300B4C #4C300B #0B4C30
tetradic
#300B4C #4C100B #274C0B #0B484C
square
#300B4C #4C100B #274C0B #0B484C
split-complementary
#300B4C #484C0B #0B4C10
monochromatic
#11041B #11041B #300B4C #521381 #741AB7

Accessibility & contrast

On white

16.43
#300B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300B4C
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300B4C#FFFFFF#000000##FFFFFF
##300B4C1.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #300b4c;
/* rgb */ color: rgb(48, 11, 76);
/* oklch */ color: oklch(25.5% 0.111 305.4);
Tailwind
colors: {
  custom: {
    50: '#6c4f7f',
    500: '#300b4c',
    950: '#000000',
  },
}
SCSS
$custom: #300b4c;
$custom-light: #6c4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#300b4c",
  "rgb": {
    "r": 48,
    "g": 11,
    "b": 76
  },
  "hsl": {
    "h": 274.154,
    "s": 74.713,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25459,
    "c": 0.11149,
    "h": 305.4
  },
  "luminance": 0.0139
}

Semantic roles & 50–950 ramp

primary
#300B4C
secondary
#53882B
accent
#F13687
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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