#300F40#300F40

#300F40 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.092 H 312.6°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#300F40
RGBrgb(48, 15, 64)
HSLhsl(280, 62%, 15%)
HSVhsv(280, 77%, 25%)
CMYKcmyk(25%, 76.6%, 0%, 74.9%)
CIE-LABlab(11.55, 26.17, -24.05)
CIE-LCHlch(11.55, 35.54, 317.42°)
OKLaboklab(24.9% 0.0623 -0.0678)
OKLCHoklch(24.9% 0.092 312.6)
XYZxyz(2.3150, 1.3403, 4.9862)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300F40 #1F400F
analogous
#170F40 #300F40 #400F37
triadic
#300F40 #40300F #0F4030
tetradic
#300F40 #40170F #1F400F #0F3740
square
#300F40 #40170F #1F400F #0F3740
split-complementary
#300F40 #37400F #0F4017
monochromatic
#130619 #130619 #300F40 #551B72 #7A26A3

Accessibility & contrast

On white

16.56
#300F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #300F40
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300F40#FFFFFF#000000##FFFFFF
##300F401.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#0B1F3F
Tritanopia (blue-blind)
#2E1926
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #300f40;
/* rgb */ color: rgb(48, 15, 64);
/* oklch */ color: oklch(24.9% 0.092 312.6);
Tailwind
colors: {
  custom: {
    50: '#6a5075',
    500: '#300f40',
    950: '#000000',
  },
}
SCSS
$custom: #300f40;
$custom-light: #6a5075;
$custom-dark: #000000;
JSON
{
  "hex": "#300f40",
  "rgb": {
    "r": 48,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 280.408,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.24898,
    "c": 0.09208,
    "h": 312.6
  },
  "luminance": 0.0134
}

Semantic roles & 50–950 ramp

primary
#300F40
secondary
#497A30
accent
#E54378
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #300F40

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

Preview Lab → · Contrast checker → · Palette generator →

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