#330F4B#330F4B

#330F4B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.106 H 308.0°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#330F4B
RGBrgb(51, 15, 75)
HSLhsl(276, 67%, 18%)
HSVhsv(276, 80%, 29%)
CMYKcmyk(32%, 80%, 0%, 70.6%)
CIE-LABlab(12.94, 29.77, -29.47)
CIE-LCHlch(12.94, 41.89, 315.29°)
OKLaboklab(26.28% 0.0654 -0.0836)
OKLCHoklch(26.28% 0.106 308)
XYZxyz(2.8058, 1.5535, 6.8073)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F4B #274B0F
analogous
#150F4B #330F4B #4B0F45
triadic
#330F4B #4B330F #0F4B33
tetradic
#330F4B #4B150F #274B0F #0F454B
square
#330F4B #4B150F #274B0F #0F454B
split-complementary
#330F4B #454B0F #0F4B15
monochromatic
#11051A #11051A #330F4B #56197E #7823B1

Accessibility & contrast

On white

16.02
#330F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#330F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330F4B
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F4B#FFFFFF#000000##FFFFFF
##330F4B1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#01224A
Tritanopia (blue-blind)
#2F1D2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330f4b;
/* rgb */ color: rgb(51, 15, 75);
/* oklch */ color: oklch(26.3% 0.106 308.0);
Tailwind
colors: {
  custom: {
    50: '#6e517e',
    500: '#330f4b',
    950: '#000000',
  },
}
SCSS
$custom: #330f4b;
$custom-light: #6e517e;
$custom-dark: #000000;
JSON
{
  "hex": "#330f4b",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 276,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26278,
    "c": 0.10617,
    "h": 308
  },
  "luminance": 0.01553
}

Semantic roles & 50–950 ramp

primary
#330F4B
secondary
#528530
accent
#EA3E83
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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