#300D4F#300D4F

#300D4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.113 H 303.3°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#300D4F
RGBrgb(48, 13, 79)
HSLhsl(272, 72%, 18%)
HSVhsv(272, 84%, 31%)
CMYKcmyk(39.2%, 83.5%, 0%, 69%)
CIE-LABlab(12.48, 31.16, -33.00)
CIE-LCHlch(12.48, 45.39, 313.36°)
OKLaboklab(25.96% 0.0618 -0.0941)
OKLCHoklch(25.96% 0.113 303.3)
XYZxyz(2.7738, 1.4807, 7.5353)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300D4F #2C4F0D
analogous
#0F0D4F #300D4F #4F0D4D
triadic
#300D4F #4F300D #0D4F30
tetradic
#300D4F #4F0F0D #2C4F0D #0D4D4F
square
#300D4F #4F0F0D #2C4F0D #0D4D4F
split-complementary
#300D4F #4D4F0D #0D4F0F
monochromatic
#10041A #10041A #300D4F #501684 #701EB8

Accessibility & contrast

On white

16.20
#300D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#300D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300D4F
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300D4F#FFFFFF#000000##FFFFFF
##300D4F1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#2A1E2D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #300d4f;
/* rgb */ color: rgb(48, 13, 79);
/* oklch */ color: oklch(26.0% 0.113 303.3);
Tailwind
colors: {
  custom: {
    50: '#6c5081',
    500: '#300d4f',
    950: '#000000',
  },
}
SCSS
$custom: #300d4f;
$custom-light: #6c5081;
$custom-dark: #000000;
JSON
{
  "hex": "#300d4f",
  "rgb": {
    "r": 48,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 271.818,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25964,
    "c": 0.11257,
    "h": 303.3
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#300D4F
secondary
#598A2E
accent
#EE398E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #300D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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