#300D46#300D46

#300D46 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.102 H 308.8°. Best body text is #FFFFFF at 16.51:1 contrast (WCAG AA passes).

Color values

HEX#300D46
RGBrgb(48, 13, 70)
HSLhsl(277, 69%, 16%)
HSVhsv(277, 81%, 27%)
CMYKcmyk(31.4%, 81.4%, 0%, 72.5%)
CIE-LABlab(11.68, 28.76, -28.07)
CIE-LCHlch(11.68, 40.19, 315.69°)
OKLaboklab(25.14% 0.0639 -0.0796)
OKLCHoklch(25.14% 0.102 308.8)
XYZxyz(2.4681, 1.3585, 5.9254)
Luminance0.0136 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300D46 #23460D
analogous
#140D46 #300D46 #460D40
triadic
#300D46 #46300D #0D4630
tetradic
#300D46 #46140D #23460D #0D4046
square
#300D46 #46140D #23460D #0D4046
split-complementary
#300D46 #40460D #0D4614
monochromatic
#12051A #12051A #300D46 #53177A #7720AD

Accessibility & contrast

On white

16.51
#300D46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300D46
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300D46#FFFFFF#000000##FFFFFF
##300D461.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#011F45
Tritanopia (blue-blind)
#2D1A28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #300d46;
/* rgb */ color: rgb(48, 13, 70);
/* oklch */ color: oklch(25.1% 0.102 308.8);
Tailwind
colors: {
  custom: {
    50: '#6b4f7a',
    500: '#300d46',
    950: '#000000',
  },
}
SCSS
$custom: #300d46;
$custom-light: #6b4f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#300d46",
  "rgb": {
    "r": 48,
    "g": 13,
    "b": 70
  },
  "hsl": {
    "h": 276.842,
    "s": 68.675,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25143,
    "c": 0.1021,
    "h": 308.8
  },
  "luminance": 0.01358
}

Semantic roles & 50–950 ramp

primary
#300D46
secondary
#4E812D
accent
#EC3C80
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #300D46

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

Preview Lab → · Contrast checker → · Palette generator →

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