#330D42#330D42

#330D42 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.099 H 314.6°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#330D42
RGBrgb(51, 13, 66)
HSLhsl(283, 67%, 15%)
HSVhsv(283, 80%, 26%)
CMYKcmyk(22.7%, 80.3%, 0%, 74.1%)
CIE-LABlab(11.86, 28.47, -24.94)
CIE-LCHlch(11.86, 37.85, 318.78°)
OKLaboklab(25.27% 0.0693 -0.0703)
OKLCHoklch(25.27% 0.099 314.6)
XYZxyz(2.4924, 1.3851, 5.2893)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D42 #1C420D
analogous
#180D42 #330D42 #420D36
triadic
#330D42 #42330D #0D4233
tetradic
#330D42 #42180D #1C420D #0D3642
square
#330D42 #42180D #1C420D #0D3642
split-complementary
#330D42 #36420D #0D4218
monochromatic
#14051A #14051A #330D42 #5B1775 #8221A8

Accessibility & contrast

On white

16.44
#330D42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#330D42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330D42
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D42#FFFFFF#000000##FFFFFF
##330D421.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#0B2041
Tritanopia (blue-blind)
#321826
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #330d42;
/* rgb */ color: rgb(51, 13, 66);
/* oklch */ color: oklch(25.3% 0.099 314.6);
Tailwind
colors: {
  custom: {
    50: '#6d5077',
    500: '#330d42',
    950: '#000000',
  },
}
SCSS
$custom: #330d42;
$custom-light: #6d5077;
$custom-dark: #000000;
JSON
{
  "hex": "#330d42",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 66
  },
  "hsl": {
    "h": 283.019,
    "s": 67.089,
    "l": 15.49
  },
  "oklch": {
    "l": 0.25272,
    "c": 0.09868,
    "h": 314.6
  },
  "luminance": 0.01385
}

Semantic roles & 50–950 ramp

primary
#330D42
secondary
#447E2D
accent
#EA3E6F
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #330D42

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

Preview Lab → · Contrast checker → · Palette generator →

#330D42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva