#330D57#330D57

#330D57 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.122 H 301.7°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#330D57
RGBrgb(51, 13, 87)
HSLhsl(271, 74%, 20%)
HSVhsv(271, 85%, 34%)
CMYKcmyk(41.4%, 85.1%, 0%, 65.9%)
CIE-LABlab(13.71, 33.88, -36.44)
CIE-LCHlch(13.71, 49.76, 312.92°)
OKLaboklab(27.16% 0.0644 -0.1041)
OKLCHoklch(27.16% 0.122 301.7)
XYZxyz(3.2290, 1.6798, 9.1691)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D57 #31570D
analogous
#0E0D57 #330D57 #570D56
triadic
#330D57 #57330D #0D5733
tetradic
#330D57 #570E0D #31570D #0D5657
square
#330D57 #570E0D #31570D #0D5657
split-complementary
#330D57 #56570D #0D570E
monochromatic
#10041B #140522 #330D57 #52158C #711DC1

Accessibility & contrast

On white

15.72
#330D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#330D57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330D57
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D57#FFFFFF#000000##FFFFFF
##330D571.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#2B2132
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #330d57;
/* rgb */ color: rgb(51, 13, 87);
/* oklch */ color: oklch(27.2% 0.122 301.7);
Tailwind
colors: {
  custom: {
    50: '#6f5187',
    500: '#330d57',
    950: '#000000',
  },
}
SCSS
$custom: #330d57;
$custom-light: #6f5187;
$custom-dark: #000000;
JSON
{
  "hex": "#330d57",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 87
  },
  "hsl": {
    "h": 270.811,
    "s": 74,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27155,
    "c": 0.12239,
    "h": 301.7
  },
  "luminance": 0.0168
}

Semantic roles & 50–950 ramp

primary
#330D57
secondary
#5F922E
accent
#F13791
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #330D57

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

Preview Lab → · Contrast checker → · Palette generator →

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