#300840#300840

#300840 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.102 H 313.9°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#300840
RGBrgb(48, 8, 64)
HSLhsl(283, 78%, 14%)
HSVhsv(283, 88%, 25%)
CMYKcmyk(25%, 87.5%, 0%, 74.9%)
CIE-LABlab(10.35, 29.58, -25.99)
CIE-LCHlch(10.35, 39.37, 318.70°)
OKLaboklab(24.04% 0.0708 -0.0734)
OKLCHoklch(24.04% 0.102 313.9)
XYZxyz(2.2310, 1.1723, 4.9582)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300840 #184008
analogous
#140840 #300840 #400834
triadic
#300840 #403008 #084030
tetradic
#300840 #401408 #184008 #083440
square
#300840 #401408 #184008 #083440
split-complementary
#300840 #344008 #084014
monochromatic
#14031B #14031B #300840 #590F76 #8216AD

Accessibility & contrast

On white

17.01
#300840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#300840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300840
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300840#FFFFFF#000000##FFFFFF
##3008401.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#2E1524
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #300840;
/* rgb */ color: rgb(48, 8, 64);
/* oklch */ color: oklch(24.0% 0.102 313.9);
Tailwind
colors: {
  custom: {
    50: '#6b4d75',
    500: '#300840',
    950: '#000000',
  },
}
SCSS
$custom: #300840;
$custom-light: #6b4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#300840",
  "rgb": {
    "r": 48,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 282.857,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24043,
    "c": 0.10199,
    "h": 313.9
  },
  "luminance": 0.01172
}

Semantic roles & 50–950 ramp

primary
#300840
secondary
#3F7E25
accent
#F4346B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #300840

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

Preview Lab → · Contrast checker → · Palette generator →

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