#330F5C#330F5C

#330F5C is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.126 H 299.0°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#330F5C
RGBrgb(51, 15, 92)
HSLhsl(268, 72%, 21%)
HSVhsv(268, 84%, 36%)
CMYKcmyk(44.6%, 83.7%, 0%, 63.9%)
CIE-LABlab(14.50, 34.35, -38.51)
CIE-LCHlch(14.50, 51.61, 311.73°)
OKLaboklab(27.86% 0.061 -0.1102)
OKLCHoklch(27.86% 0.126 299)
XYZxyz(3.4673, 1.8181, 10.2914)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F5C #385C0F
analogous
#0F115C #330F5C #590F5C
triadic
#330F5C #5C330F #0F5C33
tetradic
#330F5C #5C0F11 #385C0F #0F5C59
square
#330F5C #5C0F11 #385C0F #0F5C59
split-complementary
#330F5C #5C590F #115C0F
monochromatic
#0F041A #160627 #330F5C #501891 #6D20C5

Accessibility & contrast

On white

15.40
#330F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#330F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330F5C
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F5C#FFFFFF#000000##FFFFFF
##330F5C1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#292435
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #330f5c;
/* rgb */ color: rgb(51, 15, 92);
/* oklch */ color: oklch(27.9% 0.126 299.0);
Tailwind
colors: {
  custom: {
    50: '#70528b',
    500: '#330f5c',
    950: '#000000',
  },
}
SCSS
$custom: #330f5c;
$custom-light: #70528b;
$custom-dark: #000000;
JSON
{
  "hex": "#330f5c",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 268.052,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27859,
    "c": 0.12594,
    "h": 299
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

primary
#330F5C
secondary
#679531
accent
#EF399A
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #330F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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