#330F54#330F54

#330F54 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.117 H 302.9°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#330F54
RGBrgb(51, 15, 84)
HSLhsl(271, 70%, 19%)
HSVhsv(271, 82%, 33%)
CMYKcmyk(39.3%, 82.1%, 0%, 67.1%)
CIE-LABlab(13.74, 32.17, -34.35)
CIE-LCHlch(13.74, 47.06, 313.12°)
OKLaboklab(27.09% 0.0634 -0.0979)
OKLCHoklch(27.09% 0.117 302.9)
XYZxyz(3.1359, 1.6855, 8.5459)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F54 #30540F
analogous
#100F54 #330F54 #540F53
triadic
#330F54 #54330F #0F5433
tetradic
#330F54 #54100F #30540F #0F5354
square
#330F54 #54100F #30540F #0F5354
split-complementary
#330F54 #53540F #0F5410
monochromatic
#10051A #130620 #330F54 #531888 #7222BC

Accessibility & contrast

On white

15.70
#330F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#330F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330F54
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F54#FFFFFF#000000##FFFFFF
##330F541.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#2C2131
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #330f54;
/* rgb */ color: rgb(51, 15, 84);
/* oklch */ color: oklch(27.1% 0.117 302.9);
Tailwind
colors: {
  custom: {
    50: '#6f5285',
    500: '#330f54',
    950: '#000000',
  },
}
SCSS
$custom: #330f54;
$custom-light: #6f5285;
$custom-dark: #000000;
JSON
{
  "hex": "#330f54",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 271.304,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27091,
    "c": 0.11665,
    "h": 302.9
  },
  "luminance": 0.01686
}

Semantic roles & 50–950 ramp

primary
#330F54
secondary
#5D8E31
accent
#ED3B90
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #330F54

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

Preview Lab → · Contrast checker → · Palette generator →

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