#330B4F#330B4F

#330B4F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.116 H 306.4°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#330B4F
RGBrgb(51, 11, 79)
HSLhsl(275, 76%, 18%)
HSVhsv(275, 86%, 31%)
CMYKcmyk(35.4%, 86.1%, 0%, 69%)
CIE-LABlab(12.66, 32.64, -32.70)
CIE-LCHlch(12.66, 46.21, 314.95°)
OKLaboklab(26.19% 0.0687 -0.0931)
OKLCHoklch(26.19% 0.116 306.4)
XYZxyz(2.8959, 1.5077, 7.5341)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330B4F #274F0B
analogous
#110B4F #330B4F #4F0B49
triadic
#330B4F #4F330B #0B4F33
tetradic
#330B4F #4F110B #274F0B #0B494F
square
#330B4F #4F110B #274F0B #0B494F
split-complementary
#330B4F #494F0B #0B4F11
monochromatic
#11041B #11041B #330B4F #561285 #781ABA

Accessibility & contrast

On white

16.13
#330B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330B4F
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330B4F#FFFFFF#000000##FFFFFF
##330B4F1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#2E1D2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330b4f;
/* rgb */ color: rgb(51, 11, 79);
/* oklch */ color: oklch(26.2% 0.116 306.4);
Tailwind
colors: {
  custom: {
    50: '#6e4f81',
    500: '#330b4f',
    950: '#000000',
  },
}
SCSS
$custom: #330b4f;
$custom-light: #6e4f81;
$custom-dark: #000000;
JSON
{
  "hex": "#330b4f",
  "rgb": {
    "r": 51,
    "g": 11,
    "b": 79
  },
  "hsl": {
    "h": 275.294,
    "s": 75.556,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26187,
    "c": 0.11566,
    "h": 306.4
  },
  "luminance": 0.01508
}

Semantic roles & 50–950 ramp

primary
#330B4F
secondary
#528B2B
accent
#F23683
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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