#330F46#330F46

#330F46 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.100 H 311.3°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#330F46
RGBrgb(51, 15, 70)
HSLhsl(279, 65%, 17%)
HSVhsv(279, 79%, 27%)
CMYKcmyk(27.1%, 78.6%, 0%, 72.5%)
CIE-LABlab(12.53, 28.48, -26.67)
CIE-LCHlch(12.53, 39.01, 316.88°)
OKLaboklab(25.85% 0.0663 -0.0754)
OKLCHoklch(25.85% 0.1 311.3)
XYZxyz(2.6413, 1.4877, 5.9412)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F46 #22460F
analogous
#180F46 #330F46 #460F3E
triadic
#330F46 #46330F #0F4633
tetradic
#330F46 #46180F #22460F #0F3E46
square
#330F46 #46180F #22460F #0F3E46
split-complementary
#330F46 #3E460F #0F4618
monochromatic
#120519 #120519 #330F46 #581A78 #7C25AB

Accessibility & contrast

On white

16.18
#330F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F46
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F46#FFFFFF#000000##FFFFFF
##330F461.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F48
Deuteranopia (green-blind)
#082145
Tritanopia (blue-blind)
#311B29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330f46;
/* rgb */ color: rgb(51, 15, 70);
/* oklch */ color: oklch(25.9% 0.100 311.3);
Tailwind
colors: {
  custom: {
    50: '#6d517a',
    500: '#330f46',
    950: '#000000',
  },
}
SCSS
$custom: #330f46;
$custom-light: #6d517a;
$custom-dark: #000000;
JSON
{
  "hex": "#330f46",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 279.273,
    "s": 64.706,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25852,
    "c": 0.10036,
    "h": 311.3
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#330F46
secondary
#4C8030
accent
#E8407A
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #330F46

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

Preview Lab → · Contrast checker → · Palette generator →

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