#330948#330948

#330948 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.110 H 311.1°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#330948
RGBrgb(51, 9, 72)
HSLhsl(280, 78%, 16%)
HSVhsv(280, 88%, 28%)
CMYKcmyk(29.2%, 87.5%, 0%, 71.8%)
CIE-LABlab(11.74, 31.72, -29.35)
CIE-LCHlch(11.74, 43.22, 317.23°)
OKLaboklab(25.35% 0.0725 -0.0832)
OKLCHoklch(25.35% 0.11 311.1)
XYZxyz(2.6324, 1.3671, 6.2548)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330948 #1E4809
analogous
#130948 #330948 #48093D
triadic
#330948 #483309 #094833
tetradic
#330948 #481309 #1E4809 #093D48
square
#330948 #481309 #1E4809 #093D48
split-complementary
#330948 #3D4809 #094813
monochromatic
#13031B #13031B #330948 #5A107E #8017B5

Accessibility & contrast

On white

16.49
#330948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#330948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330948
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330948#FFFFFF#000000##FFFFFF
##3309481.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4A
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#301929
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #330948;
/* rgb */ color: rgb(51, 9, 72);
/* oklch */ color: oklch(25.3% 0.110 311.1);
Tailwind
colors: {
  custom: {
    50: '#6e4e7b',
    500: '#330948',
    950: '#000000',
  },
}
SCSS
$custom: #330948;
$custom-light: #6e4e7b;
$custom-dark: #000000;
JSON
{
  "hex": "#330948",
  "rgb": {
    "r": 51,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 280,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25345,
    "c": 0.11034,
    "h": 311.1
  },
  "luminance": 0.01367
}

Semantic roles & 50–950 ramp

primary
#330948
secondary
#478527
accent
#F43474
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #330948

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

Preview Lab → · Contrast checker → · Palette generator →

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