#330F5B#330F5B

#330F5B is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.125 H 299.4°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#330F5B
RGBrgb(51, 15, 91)
HSLhsl(268, 72%, 21%)
HSVhsv(268, 84%, 36%)
CMYKcmyk(44%, 83.5%, 0%, 64.3%)
CIE-LABlab(14.40, 34.08, -38.00)
CIE-LCHlch(14.40, 51.04, 311.88°)
OKLaboklab(27.76% 0.0613 -0.1087)
OKLCHoklch(27.76% 0.125 299.4)
XYZxyz(3.4239, 1.8007, 10.0627)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F5B #375B0F
analogous
#0F115B #330F5B #590F5B
triadic
#330F5B #5B330F #0F5B33
tetradic
#330F5B #5B0F11 #375B0F #0F5B59
square
#330F5B #5B0F11 #375B0F #0F5B59
split-complementary
#330F5B #5B590F #115B0F
monochromatic
#0F041A #160626 #330F5B #501890 #6E20C4

Accessibility & contrast

On white

15.44
#330F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F5B
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F5B#FFFFFF#000000##FFFFFF
##330F5B1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#292435
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #330f5b;
/* rgb */ color: rgb(51, 15, 91);
/* oklch */ color: oklch(27.8% 0.125 299.4);
Tailwind
colors: {
  custom: {
    50: '#70528a',
    500: '#330f5b',
    950: '#000000',
  },
}
SCSS
$custom: #330f5b;
$custom-light: #70528a;
$custom-dark: #000000;
JSON
{
  "hex": "#330f5b",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 91
  },
  "hsl": {
    "h": 268.421,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27761,
    "c": 0.12477,
    "h": 299.4
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#330F5B
secondary
#669531
accent
#EE3999
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #330F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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