#330F4D#330F4D

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

Color values

HEX#330F4D
RGBrgb(51, 15, 77)
HSLhsl(275, 67%, 18%)
HSVhsv(275, 81%, 30%)
CMYKcmyk(33.8%, 80.5%, 0%, 69.8%)
CIE-LABlab(13.12, 30.30, -30.58)
CIE-LCHlch(13.12, 43.04, 314.73°)
OKLaboklab(26.45% 0.065 -0.0869)
OKLCHoklch(26.45% 0.109 306.8)
XYZxyz(2.8753, 1.5813, 7.1735)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F4D #294D0F
analogous
#140F4D #330F4D #4D0F48
triadic
#330F4D #4D330F #0F4D33
tetradic
#330F4D #4D140F #294D0F #0F484D
square
#330F4D #4D140F #294D0F #0F484D
split-complementary
#330F4D #484D0F #0F4D14
monochromatic
#11051A #11051A #330F4D #551980 #7723B3

Accessibility & contrast

On white

15.96
#330F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F4D
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F4D#FFFFFF#000000##FFFFFF
##330F4D1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#2F1E2D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #330f4d;
/* rgb */ color: rgb(51, 15, 77);
/* oklch */ color: oklch(26.5% 0.108 306.8);
Tailwind
colors: {
  custom: {
    50: '#6e517f',
    500: '#330f4d',
    950: '#000000',
  },
}
SCSS
$custom: #330f4d;
$custom-light: #6e517f;
$custom-dark: #000000;
JSON
{
  "hex": "#330f4d",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 274.839,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.26454,
    "c": 0.1085,
    "h": 306.8
  },
  "luminance": 0.01581
}

Semantic roles & 50–950 ramp

primary
#330F4D
secondary
#558731
accent
#EA3E86
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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