#330E4A#330E4A

#330E4A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.106 H 308.9°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#330E4A
RGBrgb(51, 14, 74)
HSLhsl(277, 68%, 17%)
HSVhsv(277, 81%, 29%)
CMYKcmyk(31.1%, 81.1%, 0%, 71%)
CIE-LABlab(12.69, 30.00, -29.20)
CIE-LCHlch(12.69, 41.87, 315.78°)
OKLaboklab(26.07% 0.0668 -0.0828)
OKLCHoklch(26.07% 0.106 308.9)
XYZxyz(2.7581, 1.5123, 6.6239)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330E4A #254A0E
analogous
#150E4A #330E4A #4A0E43
triadic
#330E4A #4A330E #0E4A33
tetradic
#330E4A #4A150E #254A0E #0E434A
square
#330E4A #4A150E #254A0E #0E434A
split-complementary
#330E4A #434A0E #0E4A15
monochromatic
#12051A #12051A #330E4A #56187D #7A21B1

Accessibility & contrast

On white

16.12
#330E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#330E4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330E4A
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330E4A#FFFFFF#000000##FFFFFF
##330E4A1.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#012149
Tritanopia (blue-blind)
#2F1C2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330e4a;
/* rgb */ color: rgb(51, 14, 74);
/* oklch */ color: oklch(26.1% 0.106 308.9);
Tailwind
colors: {
  custom: {
    50: '#6e517d',
    500: '#330e4a',
    950: '#000000',
  },
}
SCSS
$custom: #330e4a;
$custom-light: #6e517d;
$custom-dark: #000000;
JSON
{
  "hex": "#330e4a",
  "rgb": {
    "r": 51,
    "g": 14,
    "b": 74
  },
  "hsl": {
    "h": 277,
    "s": 68.182,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26068,
    "c": 0.10636,
    "h": 308.9
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#330E4A
secondary
#50852F
accent
#EB3D80
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #330E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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