#330F5A#330F5A

#330F5A is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.124 H 299.9°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#330F5A
RGBrgb(51, 15, 90)
HSLhsl(269, 71%, 21%)
HSVhsv(269, 83%, 35%)
CMYKcmyk(43.3%, 83.3%, 0%, 64.7%)
CIE-LABlab(14.31, 33.80, -37.49)
CIE-LCHlch(14.31, 50.48, 312.04°)
OKLaboklab(27.66% 0.0616 -0.1072)
OKLCHoklch(27.66% 0.124 299.9)
XYZxyz(3.3811, 1.7836, 9.8370)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F5A #365A0F
analogous
#0F105A #330F5A #580F5A
triadic
#330F5A #5A330F #0F5A33
tetradic
#330F5A #5A0F10 #365A0F #0F5A58
square
#330F5A #5A0F10 #365A0F #0F5A58
split-complementary
#330F5A #5A580F #105A0F
monochromatic
#0F041A #150626 #330F5A #51188E #6E20C3

Accessibility & contrast

On white

15.48
#330F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F5A
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F5A#FFFFFF#000000##FFFFFF
##330F5A1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#2A2334
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #330f5a;
/* rgb */ color: rgb(51, 15, 90);
/* oklch */ color: oklch(27.7% 0.124 299.9);
Tailwind
colors: {
  custom: {
    50: '#6f5289',
    500: '#330f5a',
    950: '#000000',
  },
}
SCSS
$custom: #330f5a;
$custom-light: #6f5289;
$custom-dark: #000000;
JSON
{
  "hex": "#330f5a",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 268.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27663,
    "c": 0.12361,
    "h": 299.9
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#330F5A
secondary
#649431
accent
#EE3A98
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #330F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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