#300D42#300D42

#300D42 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.097 H 311.5°. Best body text is #FFFFFF at 16.64:1 contrast (WCAG AA passes).

Color values

HEX#300D42
RGBrgb(48, 13, 66)
HSLhsl(280, 67%, 15%)
HSVhsv(280, 80%, 26%)
CMYKcmyk(27.3%, 80.3%, 0%, 74.1%)
CIE-LABlab(11.34, 27.72, -25.80)
CIE-LCHlch(11.34, 37.87, 317.06°)
OKLaboklab(24.8% 0.0646 -0.0729)
OKLCHoklch(24.8% 0.097 311.5)
XYZxyz(2.3460, 1.3096, 5.2824)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300D42 #1F420D
analogous
#150D42 #300D42 #420D39
triadic
#300D42 #42300D #0D4230
tetradic
#300D42 #42150D #1F420D #0D3942
square
#300D42 #42150D #1F420D #0D3942
split-complementary
#300D42 #39420D #0D4215
monochromatic
#13051A #13051A #300D42 #551775 #7A21A8

Accessibility & contrast

On white

16.64
#300D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#300D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300D42
16.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300D42#FFFFFF#000000##FFFFFF
##300D421.0016.641.2616.64
#FFFFFF16.641.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#061F41
Tritanopia (blue-blind)
#2E1926
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #300d42;
/* rgb */ color: rgb(48, 13, 66);
/* oklch */ color: oklch(24.8% 0.097 311.5);
Tailwind
colors: {
  custom: {
    50: '#6b4f77',
    500: '#300d42',
    950: '#000000',
  },
}
SCSS
$custom: #300d42;
$custom-light: #6b4f77;
$custom-dark: #000000;
JSON
{
  "hex": "#300d42",
  "rgb": {
    "r": 48,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 279.623,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24798,
    "c": 0.09745,
    "h": 311.5
  },
  "luminance": 0.0131
}

Semantic roles & 50–950 ramp

primary
#300D42
secondary
#497E2D
accent
#EA3E78
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #300D42

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

Preview Lab → · Contrast checker → · Palette generator →

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