#330D56#330D56

#330D56 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.121 H 302.2°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#330D56
RGBrgb(51, 13, 86)
HSLhsl(271, 74%, 19%)
HSVhsv(271, 85%, 34%)
CMYKcmyk(40.7%, 84.9%, 0%, 66.3%)
CIE-LABlab(13.61, 33.62, -35.92)
CIE-LCHlch(13.61, 49.20, 313.10°)
OKLaboklab(27.06% 0.0647 -0.1025)
OKLCHoklch(27.06% 0.121 302.2)
XYZxyz(3.1885, 1.6635, 8.9554)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D56 #30560D
analogous
#0F0D56 #330D56 #560D55
triadic
#330D56 #56330D #0D5633
tetradic
#330D56 #560F0D #30560D #0D5556
square
#330D56 #560F0D #30560D #0D5556
split-complementary
#330D56 #55560D #0D560F
monochromatic
#10041B #130521 #330D56 #53158B #721DC0

Accessibility & contrast

On white

15.76
#330D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#330D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330D56
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D56#FFFFFF#000000##FFFFFF
##330D561.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#2B2131
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #330d56;
/* rgb */ color: rgb(51, 13, 86);
/* oklch */ color: oklch(27.1% 0.121 302.2);
Tailwind
colors: {
  custom: {
    50: '#6f5186',
    500: '#330d56',
    950: '#000000',
  },
}
SCSS
$custom: #330d56;
$custom-light: #6f5186;
$custom-dark: #000000;
JSON
{
  "hex": "#330d56",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 271.233,
    "s": 73.737,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27058,
    "c": 0.12125,
    "h": 302.2
  },
  "luminance": 0.01664
}

Semantic roles & 50–950 ramp

primary
#330D56
secondary
#5D912E
accent
#F03790
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #330D56

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

Preview Lab → · Contrast checker → · Palette generator →

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