#300340#300340

#300340 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.109 H 314.8°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#300340
RGBrgb(48, 3, 64)
HSLhsl(284, 91%, 13%)
HSVhsv(284, 95%, 25%)
CMYKcmyk(25%, 95.3%, 0%, 74.9%)
CIE-LABlab(9.51, 32.02, -27.35)
CIE-LCHlch(9.51, 42.11, 319.50°)
OKLaboklab(23.46% 0.0768 -0.0774)
OKLCHoklch(23.46% 0.109 314.8)
XYZxyz(2.1767, 1.0638, 4.9402)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300340 #134003
analogous
#110340 #300340 #400331
triadic
#300340 #403003 #034030
tetradic
#300340 #401103 #134003 #033140
square
#300340 #401103 #134003 #033140
split-complementary
#300340 #314003 #034011
monochromatic
#16011D #16011D #300340 #5C067A #8808B5

Accessibility & contrast

On white

17.32
#300340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#300340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300340
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300340#FFFFFF#000000##FFFFFF
##3003401.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#001C3F
Tritanopia (blue-blind)
#2F1222
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #300340;
/* rgb */ color: rgb(48, 3, 64);
/* oklch */ color: oklch(23.5% 0.109 314.8);
Tailwind
colors: {
  custom: {
    50: '#6b4a75',
    500: '#300340',
    950: '#000000',
  },
}
SCSS
$custom: #300340;
$custom-light: #6b4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#300340",
  "rgb": {
    "r": 48,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 284.262,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23456,
    "c": 0.10904,
    "h": 314.8
  },
  "luminance": 0.01064
}

Semantic roles & 50–950 ramp

primary
#300340
secondary
#37821D
accent
#FF2961
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #300340

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

Preview Lab → · Contrast checker → · Palette generator →

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