#330F4E#330F4E

#330F4E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.110 H 306.2°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#330F4E
RGBrgb(51, 15, 78)
HSLhsl(274, 68%, 18%)
HSVhsv(274, 81%, 31%)
CMYKcmyk(34.6%, 80.8%, 0%, 69.4%)
CIE-LABlab(13.20, 30.56, -31.12)
CIE-LCHlch(13.20, 43.62, 314.48°)
OKLaboklab(26.54% 0.0648 -0.0885)
OKLCHoklch(26.54% 0.11 306.2)
XYZxyz(2.9109, 1.5955, 7.3609)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F4E #2A4E0F
analogous
#130F4E #330F4E #4E0F49
triadic
#330F4E #4E330F #0F4E33
tetradic
#330F4E #4E130F #2A4E0F #0F494E
square
#330F4E #4E130F #2A4E0F #0F494E
split-complementary
#330F4E #494E0F #0F4E13
monochromatic
#11051A #11051B #330F4E #551981 #7623B5

Accessibility & contrast

On white

15.92
#330F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F4E
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F4E#FFFFFF#000000##FFFFFF
##330F4E1.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#2E1E2D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #330f4e;
/* rgb */ color: rgb(51, 15, 78);
/* oklch */ color: oklch(26.5% 0.110 306.2);
Tailwind
colors: {
  custom: {
    50: '#6e5180',
    500: '#330f4e',
    950: '#000000',
  },
}
SCSS
$custom: #330f4e;
$custom-light: #6e5180;
$custom-dark: #000000;
JSON
{
  "hex": "#330f4e",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 78
  },
  "hsl": {
    "h": 274.286,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26543,
    "c": 0.10967,
    "h": 306.2
  },
  "luminance": 0.01596
}

Semantic roles & 50–950 ramp

primary
#330F4E
secondary
#568831
accent
#EB3D88
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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