#330A4E#330A4E

#330A4E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.116 H 307.2°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#330A4E
RGBrgb(51, 10, 78)
HSLhsl(276, 77%, 17%)
HSVhsv(276, 87%, 31%)
CMYKcmyk(34.6%, 87.2%, 0%, 69.4%)
CIE-LABlab(12.42, 32.80, -32.39)
CIE-LCHlch(12.42, 46.10, 315.36°)
OKLaboklab(25.99% 0.0699 -0.0922)
OKLCHoklch(25.99% 0.116 307.2)
XYZxyz(2.8486, 1.4710, 7.3401)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330A4E #254E0A
analogous
#110A4E #330A4E #4E0A47
triadic
#330A4E #4E330A #0A4E33
tetradic
#330A4E #4E110A #254E0A #0A474E
square
#330A4E #4E110A #254E0A #0A474E
split-complementary
#330A4E #474E0A #0A4E11
monochromatic
#12031B #12031B #330A4E #561184 #7A18BA

Accessibility & contrast

On white

16.23
#330A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#330A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330A4E
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330A4E#FFFFFF#000000##FFFFFF
##330A4E1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#2E1C2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #330a4e;
/* rgb */ color: rgb(51, 10, 78);
/* oklch */ color: oklch(26.0% 0.116 307.2);
Tailwind
colors: {
  custom: {
    50: '#6e4f80',
    500: '#330a4e',
    950: '#000000',
  },
}
SCSS
$custom: #330a4e;
$custom-light: #6e4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#330a4e",
  "rgb": {
    "r": 51,
    "g": 10,
    "b": 78
  },
  "hsl": {
    "h": 276.176,
    "s": 77.273,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25994,
    "c": 0.11565,
    "h": 307.2
  },
  "luminance": 0.01471
}

Semantic roles & 50–950 ramp

primary
#330A4E
secondary
#508B29
accent
#F43480
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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