#330B4B#330B4B

#330B4B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.111 H 308.8°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#330B4B
RGBrgb(51, 11, 75)
HSLhsl(278, 74%, 17%)
HSVhsv(278, 85%, 29%)
CMYKcmyk(32%, 85.3%, 0%, 70.6%)
CIE-LABlab(12.29, 31.63, -30.53)
CIE-LCHlch(12.29, 43.96, 316.01°)
OKLaboklab(25.82% 0.0697 -0.0867)
OKLCHoklch(25.82% 0.111 308.8)
XYZxyz(2.7547, 1.4512, 6.7902)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330B4B #234B0B
analogous
#130B4B #330B4B #4B0B43
triadic
#330B4B #4B330B #0B4B33
tetradic
#330B4B #4B130B #234B0B #0B434B
square
#330B4B #4B130B #234B0B #0B434B
split-complementary
#330B4B #434B0B #0B4B13
monochromatic
#12041B #12041B #330B4B #571380 #7C1BB6

Accessibility & contrast

On white

16.28
#330B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#330B4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330B4B
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330B4B#FFFFFF#000000##FFFFFF
##330B4B1.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00214A
Tritanopia (blue-blind)
#2F1B2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #330b4b;
/* rgb */ color: rgb(51, 11, 75);
/* oklch */ color: oklch(25.8% 0.111 308.8);
Tailwind
colors: {
  custom: {
    50: '#6e4f7e',
    500: '#330b4b',
    950: '#000000',
  },
}
SCSS
$custom: #330b4b;
$custom-light: #6e4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#330b4b",
  "rgb": {
    "r": 51,
    "g": 11,
    "b": 75
  },
  "hsl": {
    "h": 277.5,
    "s": 74.419,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25819,
    "c": 0.11126,
    "h": 308.8
  },
  "luminance": 0.01451
}

Semantic roles & 50–950 ramp

primary
#330B4B
secondary
#4D872B
accent
#F1377D
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #330B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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