#330F5F#330F5F

#330F5F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.129 H 297.6°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#330F5F
RGBrgb(51, 15, 95)
HSLhsl(267, 73%, 22%)
HSVhsv(267, 84%, 37%)
CMYKcmyk(46.3%, 84.2%, 0%, 62.7%)
CIE-LABlab(14.80, 35.18, -40.04)
CIE-LCHlch(14.80, 53.30, 311.31°)
OKLaboklab(28.16% 0.06 -0.1146)
OKLCHoklch(28.16% 0.129 297.6)
XYZxyz(3.6011, 1.8716, 10.9958)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F5F #3B5F0F
analogous
#0F135F #330F5F #5B0F5F
triadic
#330F5F #5F330F #0F5F33
tetradic
#330F5F #5F0F13 #3B5F0F #0F5F5B
square
#330F5F #5F0F13 #3B5F0F #0F5F5B
split-complementary
#330F5F #5F5B0F #135F0F
monochromatic
#0E041A #17072A #330F5F #4F1794 #6C20C9

Accessibility & contrast

On white

15.28
#330F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#330F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330F5F
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F5F#FFFFFF#000000##FFFFFF
##330F5F1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#272537
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #330f5f;
/* rgb */ color: rgb(51, 15, 95);
/* oklch */ color: oklch(28.2% 0.129 297.6);
Tailwind
colors: {
  custom: {
    50: '#70528d',
    500: '#330f5f',
    950: '#000000',
  },
}
SCSS
$custom: #330f5f;
$custom-light: #70528d;
$custom-dark: #000000;
JSON
{
  "hex": "#330f5f",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 267,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28156,
    "c": 0.1294,
    "h": 297.6
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#330F5F
secondary
#6A9832
accent
#EF389D
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #330F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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