#330B52#330B52

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

Color values

HEX#330B52
RGBrgb(51, 11, 82)
HSLhsl(274, 76%, 18%)
HSVhsv(274, 87%, 32%)
CMYKcmyk(37.8%, 86.6%, 0%, 67.8%)
CIE-LABlab(12.94, 33.42, -34.30)
CIE-LCHlch(12.94, 47.89, 314.25°)
OKLaboklab(26.47% 0.0678 -0.0978)
OKLCHoklch(26.47% 0.119 304.7)
XYZxyz(3.0076, 1.5524, 8.1222)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330B52 #2A520B
analogous
#100B52 #330B52 #520B4D
triadic
#330B52 #52330B #0B5233
tetradic
#330B52 #52100B #2A520B #0B4D52
square
#330B52 #52100B #2A520B #0B4D52
split-complementary
#330B52 #4D520B #0B5210
monochromatic
#11041B #11041C #330B52 #551288 #7619BE

Accessibility & contrast

On white

16.03
#330B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#330B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330B52
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330B52#FFFFFF#000000##FFFFFF
##330B521.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#2D1E2F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330b52;
/* rgb */ color: rgb(51, 11, 82);
/* oklch */ color: oklch(26.5% 0.119 304.7);
Tailwind
colors: {
  custom: {
    50: '#6f5083',
    500: '#330b52',
    950: '#000000',
  },
}
SCSS
$custom: #330b52;
$custom-light: #6f5083;
$custom-dark: #000000;
JSON
{
  "hex": "#330b52",
  "rgb": {
    "r": 51,
    "g": 11,
    "b": 82
  },
  "hsl": {
    "h": 273.803,
    "s": 76.344,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26469,
    "c": 0.11896,
    "h": 304.7
  },
  "luminance": 0.01552
}

Semantic roles & 50–950 ramp

primary
#330B52
secondary
#568E2B
accent
#F33588
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #330B52

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

Preview Lab → · Contrast checker → · Palette generator →

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