#330F51#330F51

#330F51 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.113 H 304.5°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#330F51
RGBrgb(51, 15, 81)
HSLhsl(273, 69%, 19%)
HSVhsv(273, 81%, 32%)
CMYKcmyk(37%, 81.5%, 0%, 68.2%)
CIE-LABlab(13.47, 31.36, -32.75)
CIE-LCHlch(13.47, 45.34, 313.76°)
OKLaboklab(26.81% 0.0641 -0.0932)
OKLCHoklch(26.81% 0.113 304.5)
XYZxyz(3.0209, 1.6395, 7.9403)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F51 #2D510F
analogous
#120F51 #330F51 #510F4E
triadic
#330F51 #51330F #0F5133
tetradic
#330F51 #51120F #2D510F #0F4E51
square
#330F51 #51120F #2D510F #0F4E51
split-complementary
#330F51 #4E510F #0F5112
monochromatic
#10051A #12051D #330F51 #541985 #7422B8

Accessibility & contrast

On white

15.81
#330F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330F51
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F51#FFFFFF#000000##FFFFFF
##330F511.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #330f51;
/* rgb */ color: rgb(51, 15, 81);
/* oklch */ color: oklch(26.8% 0.113 304.5);
Tailwind
colors: {
  custom: {
    50: '#6e5182',
    500: '#330f51',
    950: '#000000',
  },
}
SCSS
$custom: #330f51;
$custom-light: #6e5182;
$custom-dark: #000000;
JSON
{
  "hex": "#330f51",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 272.727,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26814,
    "c": 0.11316,
    "h": 304.5
  },
  "luminance": 0.0164
}

Semantic roles & 50–950 ramp

primary
#330F51
secondary
#5A8B31
accent
#EC3C8C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330F51

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

Preview Lab → · Contrast checker → · Palette generator →

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