#300847#300847

#300847 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.109 H 309.1°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#300847
RGBrgb(48, 8, 71)
HSLhsl(278, 80%, 15%)
HSVhsv(278, 89%, 28%)
CMYKcmyk(32.4%, 88.7%, 0%, 72.2%)
CIE-LABlab(10.97, 31.30, -29.92)
CIE-LCHlch(10.97, 43.30, 316.30°)
OKLaboklab(24.67% 0.069 -0.085)
OKLCHoklch(24.67% 0.109 309.1)
XYZxyz(2.4429, 1.2570, 6.0740)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300847 #1F4708
analogous
#100847 #300847 #47083E
triadic
#300847 #473008 #084730
tetradic
#300847 #471008 #1F4708 #083E47
square
#300847 #471008 #1F4708 #083E47
split-complementary
#300847 #3E4708 #084710
monochromatic
#13031C #13031C #300847 #550E7E #7A14B5

Accessibility & contrast

On white

16.78
#300847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#300847 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300847
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300847#FFFFFF#000000##FFFFFF
##3008471.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C49
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#2C1828
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #300847;
/* rgb */ color: rgb(48, 8, 71);
/* oklch */ color: oklch(24.7% 0.109 309.1);
Tailwind
colors: {
  custom: {
    50: '#6c4d7b',
    500: '#300847',
    950: '#000000',
  },
}
SCSS
$custom: #300847;
$custom-light: #6c4d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#300847",
  "rgb": {
    "r": 48,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 278.095,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24673,
    "c": 0.10948,
    "h": 309.1
  },
  "luminance": 0.01257
}

Semantic roles & 50–950 ramp

primary
#300847
secondary
#498526
accent
#F63279
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070109
muted
#7A777B

Preview Lab

Preview with #300847

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

Preview Lab → · Contrast checker → · Palette generator →

#300847 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva