#330E51#330E51

#330E51 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.114 H 304.7°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#330E51
RGBrgb(51, 14, 81)
HSLhsl(273, 71%, 19%)
HSVhsv(273, 83%, 32%)
CMYKcmyk(37%, 82.7%, 0%, 68.2%)
CIE-LABlab(13.30, 31.83, -33.02)
CIE-LCHlch(13.30, 45.87, 313.95°)
OKLaboklab(26.7% 0.0652 -0.094)
OKLCHoklch(26.7% 0.114 304.7)
XYZxyz(3.0071, 1.6120, 7.9357)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330E51 #2C510E
analogous
#110E51 #330E51 #510E4D
triadic
#330E51 #51330E #0E5133
tetradic
#330E51 #51110E #2C510E #0E4D51
square
#330E51 #51110E #2C510E #0E4D51
split-complementary
#330E51 #4D510E #0E5111
monochromatic
#10051A #12051D #330E51 #541785 #7520B9

Accessibility & contrast

On white

15.88
#330E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#330E51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330E51
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330E51#FFFFFF#000000##FFFFFF
##330E511.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#2D1F2F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #330e51;
/* rgb */ color: rgb(51, 14, 81);
/* oklch */ color: oklch(26.7% 0.114 304.7);
Tailwind
colors: {
  custom: {
    50: '#6e5182',
    500: '#330e51',
    950: '#000000',
  },
}
SCSS
$custom: #330e51;
$custom-light: #6e5182;
$custom-dark: #000000;
JSON
{
  "hex": "#330e51",
  "rgb": {
    "r": 51,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 273.134,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26697,
    "c": 0.1144,
    "h": 304.7
  },
  "luminance": 0.01612
}

Semantic roles & 50–950 ramp

primary
#330E51
secondary
#598C2F
accent
#ED3A8B
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330E51

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

Preview Lab → · Contrast checker → · Palette generator →

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