#330C50#330C50

#330C50 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.4% C 0.116 H 305.7°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#330C50
RGBrgb(51, 12, 80)
HSLhsl(274, 74%, 18%)
HSVhsv(274, 85%, 31%)
CMYKcmyk(36.3%, 85%, 0%, 68.6%)
CIE-LABlab(12.90, 32.47, -32.99)
CIE-LCHlch(12.90, 46.29, 314.54°)
OKLaboklab(26.38% 0.0674 -0.0939)
OKLCHoklch(26.38% 0.116 305.7)
XYZxyz(2.9444, 1.5460, 7.7311)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330C50 #29500C
analogous
#110C50 #330C50 #500C4B
triadic
#330C50 #50330C #0C5033
tetradic
#330C50 #50110C #29500C #0C4B50
square
#330C50 #50110C #29500C #0C4B50
split-complementary
#330C50 #4B500C #0C5011
monochromatic
#11041B #11041B #330C50 #551485 #771CBA

Accessibility & contrast

On white

16.04
#330C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330C50
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330C50#FFFFFF#000000##FFFFFF
##330C501.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002052
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#2E1E2E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330c50;
/* rgb */ color: rgb(51, 12, 80);
/* oklch */ color: oklch(26.4% 0.116 305.7);
Tailwind
colors: {
  custom: {
    50: '#6e5082',
    500: '#330c50',
    950: '#000000',
  },
}
SCSS
$custom: #330c50;
$custom-light: #6e5082;
$custom-dark: #000000;
JSON
{
  "hex": "#330c50",
  "rgb": {
    "r": 51,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 274.412,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26384,
    "c": 0.11563,
    "h": 305.7
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#330C50
secondary
#558B2C
accent
#F13786
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020A
muted
#7B787C

Preview Lab

Preview with #330C50

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

Preview Lab → · Contrast checker → · Palette generator →

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