#330F48#330F48

#330F48 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.103 H 310.0°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#330F48
RGBrgb(51, 15, 72)
HSLhsl(278, 66%, 17%)
HSVhsv(278, 79%, 28%)
CMYKcmyk(29.2%, 79.2%, 0%, 71.8%)
CIE-LABlab(12.69, 28.99, -27.80)
CIE-LCHlch(12.69, 40.16, 316.20°)
OKLaboklab(26.02% 0.066 -0.0787)
OKLCHoklch(26.02% 0.103 310)
XYZxyz(2.7055, 1.5134, 6.2792)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330F48 #24480F
analogous
#170F48 #330F48 #480F41
triadic
#330F48 #48330F #0F4833
tetradic
#330F48 #48170F #24480F #0F4148
square
#330F48 #48170F #24480F #0F4148
split-complementary
#330F48 #41480F #0F4817
monochromatic
#120519 #120519 #330F48 #571A7B #7B24AD

Accessibility & contrast

On white

16.12
#330F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#330F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330F48
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330F48#FFFFFF#000000##FFFFFF
##330F481.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#052147
Tritanopia (blue-blind)
#301C2A
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #330f48;
/* rgb */ color: rgb(51, 15, 72);
/* oklch */ color: oklch(26.0% 0.103 310.0);
Tailwind
colors: {
  custom: {
    50: '#6d517b',
    500: '#330f48',
    950: '#000000',
  },
}
SCSS
$custom: #330f48;
$custom-light: #6d517b;
$custom-dark: #000000;
JSON
{
  "hex": "#330f48",
  "rgb": {
    "r": 51,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 277.895,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.2602,
    "c": 0.10268,
    "h": 310
  },
  "luminance": 0.01513
}

Semantic roles & 50–950 ramp

primary
#330F48
secondary
#4F8230
accent
#E83F7E
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #330F48

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

Preview Lab → · Contrast checker → · Palette generator →

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