#330E56#330E56

#330E56 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.120 H 302.1°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#330E56
RGBrgb(51, 14, 86)
HSLhsl(271, 72%, 20%)
HSVhsv(271, 84%, 34%)
CMYKcmyk(40.7%, 83.7%, 0%, 66.3%)
CIE-LABlab(13.77, 33.17, -35.67)
CIE-LCHlch(13.77, 48.71, 312.92°)
OKLaboklab(27.17% 0.0638 -0.1018)
OKLCHoklch(27.17% 0.12 302.1)
XYZxyz(3.2016, 1.6898, 8.9598)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330E56 #31560E
analogous
#0F0E56 #330E56 #560E55
triadic
#330E56 #56330E #0E5633
tetradic
#330E56 #560F0E #31560E #0E5556
square
#330E56 #560F0E #31560E #0E5556
split-complementary
#330E56 #55560E #0E560F
monochromatic
#10041A #140521 #330E56 #52178B #711FBF

Accessibility & contrast

On white

15.70
#330E56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#330E56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330E56
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330E56#FFFFFF#000000##FFFFFF
##330E561.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#2B2132
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #330e56;
/* rgb */ color: rgb(51, 14, 86);
/* oklch */ color: oklch(27.2% 0.120 302.1);
Tailwind
colors: {
  custom: {
    50: '#6f5186',
    500: '#330e56',
    950: '#000000',
  },
}
SCSS
$custom: #330e56;
$custom-light: #6f5186;
$custom-dark: #000000;
JSON
{
  "hex": "#330e56",
  "rgb": {
    "r": 51,
    "g": 14,
    "b": 86
  },
  "hsl": {
    "h": 270.833,
    "s": 72,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27167,
    "c": 0.12014,
    "h": 302.1
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#330E56
secondary
#5F9030
accent
#EF3991
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #330E56

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

Preview Lab → · Contrast checker → · Palette generator →

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