#300440#300440

#300440 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.6% C 0.108 H 314.6°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#300440
RGBrgb(48, 4, 64)
HSLhsl(284, 88%, 13%)
HSVhsv(284, 94%, 25%)
CMYKcmyk(25%, 93.8%, 0%, 74.9%)
CIE-LABlab(9.68, 31.52, -27.07)
CIE-LCHlch(9.68, 41.55, 319.34°)
OKLaboklab(23.58% 0.0756 -0.0766)
OKLCHoklch(23.58% 0.108 314.6)
XYZxyz(2.1876, 1.0855, 4.9438)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#300440 #144004
analogous
#120440 #300440 #400432
triadic
#300440 #403004 #044030
tetradic
#300440 #401204 #144004 #043240
square
#300440 #401204 #144004 #043240
split-complementary
#300440 #324004 #044012
monochromatic
#16021D #16021D #300440 #5B087A #860BB3

Accessibility & contrast

On white

17.26
#300440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#300440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #300440
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##300440#FFFFFF#000000##FFFFFF
##3004401.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#011C3F
Tritanopia (blue-blind)
#2E1323
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #300440;
/* rgb */ color: rgb(48, 4, 64);
/* oklch */ color: oklch(23.6% 0.108 314.6);
Tailwind
colors: {
  custom: {
    50: '#6b4b75',
    500: '#300440',
    950: '#000000',
  },
}
SCSS
$custom: #300440;
$custom-light: #6b4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#300440",
  "rgb": {
    "r": 48,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 284,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23576,
    "c": 0.10758,
    "h": 314.6
  },
  "luminance": 0.01085
}

Semantic roles & 50–950 ramp

primary
#300440
secondary
#39811F
accent
#FE2962
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #300440

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

Preview Lab → · Contrast checker → · Palette generator →

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