#330F3F#330F3F

#330F3F is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.3% C 0.092 H 316.5°. Best body text is #FFFFFF at 16.40:1 contrast (WCAG AA passes).

Color values

HEX#330F3F
RGBrgb(51, 15, 63)
HSLhsl(285, 62%, 15%)
HSVhsv(285, 76%, 25%)
CMYKcmyk(19%, 76.2%, 0%, 75.3%)
CIE-LABlab(11.99, 26.73, -22.62)
CIE-LCHlch(11.99, 35.01, 319.76°)
OKLaboklab(25.29% 0.067 -0.0635)
OKLCHoklch(25.29% 0.092 316.5)
XYZxyz(2.4331, 1.4044, 4.8446)
Luminance0.0140 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F3F #1B3F0F
analogous
#1B0F3F #330F3F #3F0F33
triadic
#330F3F #3F330F #0F3F33
tetradic
#330F3F #3F1B0F #1B3F0F #0F333F
square
#330F3F #3F1B0F #1B3F0F #0F333F
split-complementary
#330F3F #333F0F #0F3F1B
monochromatic
#140619 #140619 #330F3F #5B1B70 #8327A2

Accessibility & contrast

On white

16.40
#330F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#330F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330F3F
16.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F3F#FFFFFF#000000##FFFFFF
##330F3F1.0016.401.2816.40
#FFFFFF16.401.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#0F213E
Tritanopia (blue-blind)
#321825
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #330f3f;
/* rgb */ color: rgb(51, 15, 63);
/* oklch */ color: oklch(25.3% 0.092 316.5);
Tailwind
colors: {
  custom: {
    50: '#6d5174',
    500: '#330f3f',
    950: '#000000',
  },
}
SCSS
$custom: #330f3f;
$custom-light: #6d5174;
$custom-dark: #000000;
JSON
{
  "hex": "#330f3f",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 285,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25291,
    "c": 0.09227,
    "h": 316.5
  },
  "luminance": 0.01404
}

Semantic roles & 50–950 ramp

primary
#330F3F
secondary
#437930
accent
#E5436C
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #330F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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