#300D40#300D40

#300D40 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.6% C 0.095 H 313.0°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#300D40
RGBrgb(48, 13, 64)
HSLhsl(281, 66%, 15%)
HSVhsv(281, 80%, 25%)
CMYKcmyk(25%, 79.7%, 0%, 74.9%)
CIE-LABlab(11.18, 27.21, -24.65)
CIE-LCHlch(11.18, 36.72, 317.83°)
OKLaboklab(24.63% 0.0649 -0.0695)
OKLCHoklch(24.63% 0.095 313)
XYZxyz(2.2881, 1.2865, 4.9773)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300D40 #1D400D
analogous
#160D40 #300D40 #400D37
triadic
#300D40 #40300D #0D4030
tetradic
#300D40 #40160D #1D400D #0D3740
square
#300D40 #40160D #1D400D #0D3740
split-complementary
#300D40 #37400D #0D4016
monochromatic
#130519 #130519 #300D40 #561773 #7C22A6

Accessibility & contrast

On white

16.70
#300D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300D40
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300D40#FFFFFF#000000##FFFFFF
##300D401.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#091F3F
Tritanopia (blue-blind)
#2E1825
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #300d40;
/* rgb */ color: rgb(48, 13, 64);
/* oklch */ color: oklch(24.6% 0.095 313.0);
Tailwind
colors: {
  custom: {
    50: '#6b4f75',
    500: '#300d40',
    950: '#000000',
  },
}
SCSS
$custom: #300d40;
$custom-light: #6b4f75;
$custom-dark: #000000;
JSON
{
  "hex": "#300d40",
  "rgb": {
    "r": 48,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 281.176,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.24631,
    "c": 0.09513,
    "h": 313
  },
  "luminance": 0.01286
}

Semantic roles & 50–950 ramp

primary
#300D40
secondary
#467C2D
accent
#E93F74
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #300D40

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

Preview Lab → · Contrast checker → · Palette generator →

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