#330D4B#330D4B

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

Color values

HEX#330D4B
RGBrgb(51, 13, 75)
HSLhsl(277, 70%, 17%)
HSVhsv(277, 83%, 29%)
CMYKcmyk(32%, 82.7%, 0%, 70.6%)
CIE-LABlab(12.61, 30.73, -30.02)
CIE-LCHlch(12.61, 42.96, 315.67°)
OKLaboklab(26.04% 0.0677 -0.0852)
OKLCHoklch(26.04% 0.109 308.5)
XYZxyz(2.7789, 1.4997, 6.7983)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D4B #254B0D
analogous
#140D4B #330D4B #4B0D44
triadic
#330D4B #4B330D #0D4B33
tetradic
#330D4B #4B140D #254B0D #0D444B
square
#330D4B #4B140D #254B0D #0D444B
split-complementary
#330D4B #444B0D #0D4B14
monochromatic
#12051A #12051A #330D4B #56167F #7A1FB3

Accessibility & contrast

On white

16.15
#330D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330D4B
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D4B#FFFFFF#000000##FFFFFF
##330D4B1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#2F1C2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330d4b;
/* rgb */ color: rgb(51, 13, 75);
/* oklch */ color: oklch(26.0% 0.109 308.5);
Tailwind
colors: {
  custom: {
    50: '#6e507e',
    500: '#330d4b',
    950: '#000000',
  },
}
SCSS
$custom: #330d4b;
$custom-light: #6e507e;
$custom-dark: #000000;
JSON
{
  "hex": "#330d4b",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 276.774,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26039,
    "c": 0.10881,
    "h": 308.5
  },
  "luminance": 0.015
}

Semantic roles & 50–950 ramp

primary
#330D4B
secondary
#50862E
accent
#ED3B80
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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