#330D54#330D54

#330D54 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.9% C 0.119 H 303.3°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#330D54
RGBrgb(51, 13, 84)
HSLhsl(272, 73%, 19%)
HSVhsv(272, 85%, 33%)
CMYKcmyk(39.3%, 84.5%, 0%, 67.1%)
CIE-LABlab(13.42, 33.09, -34.87)
CIE-LCHlch(13.42, 48.07, 313.49°)
OKLaboklab(26.87% 0.0653 -0.0995)
OKLCHoklch(26.87% 0.119 303.3)
XYZxyz(3.1090, 1.6317, 8.5370)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D54 #2E540D
analogous
#100D54 #330D54 #540D52
triadic
#330D54 #54330D #0D5433
tetradic
#330D54 #54100D #2E540D #0D5254
square
#330D54 #54100D #2E540D #0D5254
split-complementary
#330D54 #52540D #0D5410
monochromatic
#10041A #13051F #330D54 #531589 #731DBE

Accessibility & contrast

On white

15.83
#330D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#330D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330D54
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D54#FFFFFF#000000##FFFFFF
##330D541.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#2C2030
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #330d54;
/* rgb */ color: rgb(51, 13, 84);
/* oklch */ color: oklch(26.9% 0.119 303.3);
Tailwind
colors: {
  custom: {
    50: '#6f5185',
    500: '#330d54',
    950: '#000000',
  },
}
SCSS
$custom: #330d54;
$custom-light: #6f5185;
$custom-dark: #000000;
JSON
{
  "hex": "#330d54",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 272.113,
    "s": 73.196,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26867,
    "c": 0.11899,
    "h": 303.3
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

primary
#330D54
secondary
#5B8F2E
accent
#F0388D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #330D54

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

Preview Lab → · Contrast checker → · Palette generator →

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