#330B4D#330B4D

#330B4D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.113 H 307.6°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#330B4D
RGBrgb(51, 11, 77)
HSLhsl(276, 75%, 17%)
HSVhsv(276, 86%, 30%)
CMYKcmyk(33.8%, 85.7%, 0%, 69.8%)
CIE-LABlab(12.47, 32.13, -31.62)
CIE-LCHlch(12.47, 45.08, 315.46°)
OKLaboklab(26% 0.0692 -0.0899)
OKLCHoklch(26% 0.113 307.6)
XYZxyz(2.8242, 1.4790, 7.1564)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330B4D #254D0B
analogous
#120B4D #330B4D #4D0B46
triadic
#330B4D #4D330B #0B4D33
tetradic
#330B4D #4D120B #254D0B #0B464D
square
#330B4D #4D120B #254D0B #0B464D
split-complementary
#330B4D #464D0B #0B4D12
monochromatic
#12041B #12041B #330B4D #561383 #7A1AB8

Accessibility & contrast

On white

16.21
#330B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#330B4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330B4D
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330B4D#FFFFFF#000000##FFFFFF
##330B4D1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#2F1C2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #330b4d;
/* rgb */ color: rgb(51, 11, 77);
/* oklch */ color: oklch(26.0% 0.113 307.6);
Tailwind
colors: {
  custom: {
    50: '#6e4f7f',
    500: '#330b4d',
    950: '#000000',
  },
}
SCSS
$custom: #330b4d;
$custom-light: #6e4f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#330b4d",
  "rgb": {
    "r": 51,
    "g": 11,
    "b": 77
  },
  "hsl": {
    "h": 276.364,
    "s": 75,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26002,
    "c": 0.11345,
    "h": 307.6
  },
  "luminance": 0.01479
}

Semantic roles & 50–950 ramp

primary
#330B4D
secondary
#50892B
accent
#F23680
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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