#330F5E#330F5E

#330F5E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.128 H 298.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#330F5E
RGBrgb(51, 15, 94)
HSLhsl(267, 72%, 21%)
HSVhsv(267, 84%, 37%)
CMYKcmyk(45.7%, 84%, 0%, 63.1%)
CIE-LABlab(14.70, 34.90, -39.53)
CIE-LCHlch(14.70, 52.74, 311.44°)
OKLaboklab(28.06% 0.0604 -0.1132)
OKLCHoklch(28.06% 0.128 298.1)
XYZxyz(3.5559, 1.8535, 10.7579)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F5E #3A5E0F
analogous
#0F135E #330F5E #5B0F5E
triadic
#330F5E #5E330F #0F5E33
tetradic
#330F5E #5E0F13 #3A5E0F #0F5E5B
square
#330F5E #5E0F13 #3A5E0F #0F5E5B
split-complementary
#330F5E #5E5B0F #135E0F
monochromatic
#0E041A #160729 #330F5E #501793 #6C20C8

Accessibility & contrast

On white

15.32
#330F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F5E
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F5E#FFFFFF#000000##FFFFFF
##330F5E1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #330f5e;
/* rgb */ color: rgb(51, 15, 94);
/* oklch */ color: oklch(28.1% 0.128 298.1);
Tailwind
colors: {
  custom: {
    50: '#70528c',
    500: '#330f5e',
    950: '#000000',
  },
}
SCSS
$custom: #330f5e;
$custom-light: #70528c;
$custom-dark: #000000;
JSON
{
  "hex": "#330f5e",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 267.342,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28057,
    "c": 0.12825,
    "h": 298.1
  },
  "luminance": 0.01854
}

Semantic roles & 50–950 ramp

primary
#330F5E
secondary
#699731
accent
#EF399C
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020C
muted
#7B787D

Preview Lab

Preview with #330F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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