#330F4F#330F4F

#330F4F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.111 H 305.6°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#330F4F
RGBrgb(51, 15, 79)
HSLhsl(274, 68%, 18%)
HSVhsv(274, 81%, 31%)
CMYKcmyk(35.4%, 81%, 0%, 69%)
CIE-LABlab(13.29, 30.82, -31.67)
CIE-LCHlch(13.29, 44.19, 314.23°)
OKLaboklab(26.63% 0.0646 -0.0901)
OKLCHoklch(26.63% 0.111 305.6)
XYZxyz(2.9470, 1.6100, 7.5511)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F4F #2B4F0F
analogous
#130F4F #330F4F #4F0F4B
triadic
#330F4F #4F330F #0F4F33
tetradic
#330F4F #4F130F #2B4F0F #0F4B4F
square
#330F4F #4F130F #2B4F0F #0F4B4F
split-complementary
#330F4F #4B4F0F #0F4F13
monochromatic
#11051A #12051C #330F4F #541982 #7523B6

Accessibility & contrast

On white

15.89
#330F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F4F
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F4F#FFFFFF#000000##FFFFFF
##330F4F1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#2E1F2E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #330f4f;
/* rgb */ color: rgb(51, 15, 79);
/* oklch */ color: oklch(26.6% 0.111 305.6);
Tailwind
colors: {
  custom: {
    50: '#6e5181',
    500: '#330f4f',
    950: '#000000',
  },
}
SCSS
$custom: #330f4f;
$custom-light: #6e5181;
$custom-dark: #000000;
JSON
{
  "hex": "#330f4f",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 273.75,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26632,
    "c": 0.11083,
    "h": 305.6
  },
  "luminance": 0.0161
}

Semantic roles & 50–950 ramp

primary
#330F4F
secondary
#578931
accent
#EB3D89
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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