#330F52#330F52

#330F52 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.114 H 304.0°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#330F52
RGBrgb(51, 15, 82)
HSLhsl(272, 69%, 19%)
HSVhsv(272, 82%, 32%)
CMYKcmyk(37.8%, 81.7%, 0%, 67.8%)
CIE-LABlab(13.56, 31.63, -33.29)
CIE-LCHlch(13.56, 45.91, 313.54°)
OKLaboklab(26.91% 0.0639 -0.0948)
OKLCHoklch(26.91% 0.114 304)
XYZxyz(3.0587, 1.6547, 8.1392)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F52 #2E520F
analogous
#120F52 #330F52 #520F50
triadic
#330F52 #52330F #0F5233
tetradic
#330F52 #52120F #2E520F #0F5052
square
#330F52 #52120F #2E520F #0F5052
split-complementary
#330F52 #50520F #0F5212
monochromatic
#10051A #13061E #330F52 #531886 #7322B9

Accessibility & contrast

On white

15.78
#330F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#330F52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330F52
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F52#FFFFFF#000000##FFFFFF
##330F521.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#2D2030
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #330f52;
/* rgb */ color: rgb(51, 15, 82);
/* oklch */ color: oklch(26.9% 0.114 304.0);
Tailwind
colors: {
  custom: {
    50: '#6e5283',
    500: '#330f52',
    950: '#000000',
  },
}
SCSS
$custom: #330f52;
$custom-light: #6e5283;
$custom-dark: #000000;
JSON
{
  "hex": "#330f52",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 272.239,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26906,
    "c": 0.11432,
    "h": 304
  },
  "luminance": 0.01655
}

Semantic roles & 50–950 ramp

primary
#330F52
secondary
#5B8C31
accent
#EC3C8D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #330F52

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

Preview Lab → · Contrast checker → · Palette generator →

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