#330D58#330D58

#330D58 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.124 H 301.2°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#330D58
RGBrgb(51, 13, 88)
HSLhsl(270, 74%, 20%)
HSVhsv(270, 85%, 35%)
CMYKcmyk(42%, 85.2%, 0%, 65.5%)
CIE-LABlab(13.80, 34.15, -36.96)
CIE-LCHlch(13.80, 50.33, 312.74°)
OKLaboklab(27.25% 0.0641 -0.1056)
OKLCHoklch(27.25% 0.124 301.2)
XYZxyz(3.2702, 1.6962, 9.3857)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330D58 #32580D
analogous
#0E0D58 #330D58 #580D58
triadic
#330D58 #58330D #0D5833
tetradic
#330D58 #580E0D #32580D #0D5858
square
#330D58 #580E0D #32580D #0D5858
split-complementary
#330D58 #58580D #0D580E
monochromatic
#0F041B #140523 #330D58 #52158D #711DC3

Accessibility & contrast

On white

15.68
#330D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330D58
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330D58#FFFFFF#000000##FFFFFF
##330D581.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#2B2133
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #330d58;
/* rgb */ color: rgb(51, 13, 88);
/* oklch */ color: oklch(27.3% 0.124 301.2);
Tailwind
colors: {
  custom: {
    50: '#6f5188',
    500: '#330d58',
    950: '#000000',
  },
}
SCSS
$custom: #330d58;
$custom-light: #6f5188;
$custom-dark: #000000;
JSON
{
  "hex": "#330d58",
  "rgb": {
    "r": 51,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 270.4,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27252,
    "c": 0.12352,
    "h": 301.2
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#330D58
secondary
#60932E
accent
#F13793
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#08020B
muted
#7B787C

Preview Lab

Preview with #330D58

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

Preview Lab → · Contrast checker → · Palette generator →

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