#330F76#330F76

#330F76 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.156 H 289.3°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#330F76
RGBrgb(51, 15, 118)
HSLhsl(261, 77%, 26%)
HSVhsv(261, 87%, 46%)
CMYKcmyk(56.8%, 87.3%, 0%, 53.7%)
CIE-LABlab(17.24, 41.60, -51.09)
CIE-LCHlch(17.24, 65.88, 309.15°)
OKLaboklab(30.58% 0.0514 -0.147)
OKLCHoklch(30.58% 0.156 289.3)
XYZxyz(4.8051, 2.3532, 17.3371)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F76 #52760F
analogous
#0F1E76 #330F76 #660F76
triadic
#330F76 #76330F #0F7633
tetradic
#330F76 #760F1E #52760F #0F7666
square
#330F76 #760F1E #52760F #0F7666
split-complementary
#330F76 #76660F #1E760F
monochromatic
#0C031B #1C0840 #330F76 #4A16AC #621DE2

Accessibility & contrast

On white

14.28
#330F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#330F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330F76
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F76#FFFFFF#000000##FFFFFF
##330F761.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#172F44
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #330f76;
/* rgb */ color: rgb(51, 15, 118);
/* oklch */ color: oklch(30.6% 0.156 289.3);
Tailwind
colors: {
  custom: {
    50: '#74549f',
    500: '#330f76',
    950: '#000000',
  },
}
SCSS
$custom: #330f76;
$custom-light: #74549f;
$custom-dark: #000000;
JSON
{
  "hex": "#330f76",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 260.971,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3058,
    "c": 0.15571,
    "h": 289.3
  },
  "luminance": 0.02353
}

Semantic roles & 50–950 ramp

primary
#330F76
secondary
#83AD33
accent
#F434B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #330F76

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

Preview Lab → · Contrast checker → · Palette generator →

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