#330CA2#330CA2

#330CA2 is a dark, highly saturated violet. Relative luminance 0.036; OKLCH L 35.5% C 0.206 H 279.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#330CA2
RGBrgb(51, 12, 162)
HSLhsl(256, 86%, 34%)
HSVhsv(256, 93%, 64%)
CMYKcmyk(68.5%, 92.6%, 0%, 36.5%)
CIE-LABlab(22.21, 54.56, -70.39)
CIE-LCHlch(22.21, 89.06, 307.78°)
OKLaboklab(35.49% 0.0342 -0.2031)
OKLCHoklch(35.49% 0.206 279.6)
XYZxyz(8.0162, 3.5747, 34.4430)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330CA2 #7BA20C
analogous
#0C30A2 #330CA2 #7E0CA2
triadic
#330CA2 #A2330C #0CA233
tetradic
#330CA2 #A20C30 #7BA20C #0CA27E
square
#330CA2 #A20C30 #7BA20C #0CA27E
split-complementary
#330CA2 #A27E0C #30A20C
monochromatic
#0F0430 #210869 #330CA2 #4510DB #6838F0

Accessibility & contrast

On white

12.24
#330CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#330CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330CA2
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330CA2#FFFFFF#000000##FFFFFF
##330CA21.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA6
Deuteranopia (green-blind)
#002FA0
Tritanopia (blue-blind)
#00425E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #330ca2;
/* rgb */ color: rgb(51, 12, 162);
/* oklch */ color: oklch(35.5% 0.206 279.6);
Tailwind
colors: {
  custom: {
    50: '#7d57bf',
    500: '#330ca2',
    950: '#000000',
  },
}
SCSS
$custom: #330ca2;
$custom-light: #7d57bf;
$custom-dark: #000000;
JSON
{
  "hex": "#330ca2",
  "rgb": {
    "r": 51,
    "g": 12,
    "b": 162
  },
  "hsl": {
    "h": 255.6,
    "s": 86.207,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35488,
    "c": 0.20594,
    "h": 279.6
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#330CA2
secondary
#A8CF3B
accent
#FC2BC6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #330CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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