#330F56#330F56

#330F56 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.119 H 301.9°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#330F56
RGBrgb(51, 15, 86)
HSLhsl(270, 70%, 20%)
HSVhsv(270, 83%, 34%)
CMYKcmyk(40.7%, 82.6%, 0%, 66.3%)
CIE-LABlab(13.93, 32.71, -35.41)
CIE-LCHlch(13.93, 48.20, 312.73°)
OKLaboklab(27.28% 0.0628 -0.101)
OKLCHoklch(27.28% 0.119 301.9)
XYZxyz(3.2154, 1.7173, 8.9644)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F56 #32560F
analogous
#100F56 #330F56 #560F55
triadic
#330F56 #56330F #0F5633
tetradic
#330F56 #56100F #32560F #0F5556
square
#330F56 #56100F #32560F #0F5556
split-complementary
#330F56 #55560F #0F5610
monochromatic
#0F051A #140622 #330F56 #52188A #7121BE

Accessibility & contrast

On white

15.63
#330F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F56
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F56#FFFFFF#000000##FFFFFF
##330F561.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #330f56;
/* rgb */ color: rgb(51, 15, 86);
/* oklch */ color: oklch(27.3% 0.119 301.9);
Tailwind
colors: {
  custom: {
    50: '#6f5286',
    500: '#330f56',
    950: '#000000',
  },
}
SCSS
$custom: #330f56;
$custom-light: #6f5286;
$custom-dark: #000000;
JSON
{
  "hex": "#330f56",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 270.423,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27279,
    "c": 0.11897,
    "h": 301.9
  },
  "luminance": 0.01717
}

Semantic roles & 50–950 ramp

primary
#330F56
secondary
#609031
accent
#ED3B93
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #330F56

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

Preview Lab → · Contrast checker → · Palette generator →

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