#330C51#330C51

#330C51 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.117 H 305.1°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#330C51
RGBrgb(51, 12, 81)
HSLhsl(274, 74%, 18%)
HSVhsv(274, 85%, 32%)
CMYKcmyk(37%, 85.2%, 0%, 68.2%)
CIE-LABlab(12.99, 32.73, -33.53)
CIE-LCHlch(12.99, 46.86, 314.31°)
OKLaboklab(26.48% 0.0671 -0.0955)
OKLCHoklch(26.48% 0.117 305.1)
XYZxyz(2.9816, 1.5609, 7.9272)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330C51 #2A510C
analogous
#100C51 #330C51 #510C4C
triadic
#330C51 #51330C #0C5133
tetradic
#330C51 #51100C #2A510C #0C4C51
square
#330C51 #51100C #2A510C #0C4C51
split-complementary
#330C51 #4C510C #0C5110
monochromatic
#11041B #11041C #330C51 #551486 #761CBC

Accessibility & contrast

On white

16.00
#330C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#330C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330C51
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330C51#FFFFFF#000000##FFFFFF
##330C511.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#2D1E2E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #330c51;
/* rgb */ color: rgb(51, 12, 81);
/* oklch */ color: oklch(26.5% 0.117 305.1);
Tailwind
colors: {
  custom: {
    50: '#6f5082',
    500: '#330c51',
    950: '#000000',
  },
}
SCSS
$custom: #330c51;
$custom-light: #6f5082;
$custom-dark: #000000;
JSON
{
  "hex": "#330c51",
  "rgb": {
    "r": 51,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 273.913,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26477,
    "c": 0.11675,
    "h": 305.1
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#330C51
secondary
#568C2C
accent
#F13788
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020A
muted
#7B787C

Preview Lab

Preview with #330C51

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

Preview Lab → · Contrast checker → · Palette generator →

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