#330B56#330B56

#330B56 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.123 H 302.6°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#330B56
RGBrgb(51, 11, 86)
HSLhsl(272, 77%, 19%)
HSVhsv(272, 87%, 34%)
CMYKcmyk(40.7%, 87.2%, 0%, 66.3%)
CIE-LABlab(13.32, 34.46, -36.40)
CIE-LCHlch(13.32, 50.12, 313.44°)
OKLaboklab(26.86% 0.0665 -0.1039)
OKLCHoklch(26.86% 0.123 302.6)
XYZxyz(3.1642, 1.6150, 8.9473)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330B56 #2E560B
analogous
#0E0B56 #330B56 #560B54
triadic
#330B56 #56330B #0B5633
tetradic
#330B56 #560E0B #2E560B #0B5456
square
#330B56 #560E0B #2E560B #0B5456
split-complementary
#330B56 #54560B #0B560E
monochromatic
#10031B #130420 #330B56 #53128C #7319C3

Accessibility & contrast

On white

15.87
#330B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330B56
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330B56#FFFFFF#000000##FFFFFF
##330B561.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #330b56;
/* rgb */ color: rgb(51, 11, 86);
/* oklch */ color: oklch(26.9% 0.123 302.6);
Tailwind
colors: {
  custom: {
    50: '#6f5086',
    500: '#330b56',
    950: '#000000',
  },
}
SCSS
$custom: #330b56;
$custom-light: #6f5086;
$custom-dark: #000000;
JSON
{
  "hex": "#330b56",
  "rgb": {
    "r": 51,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 272,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26856,
    "c": 0.12337,
    "h": 302.6
  },
  "luminance": 0.01615
}

Semantic roles & 50–950 ramp

primary
#330B56
secondary
#5B912B
accent
#F4348E
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #330B56

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

Preview Lab → · Contrast checker → · Palette generator →

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