#330842#330842

#330842 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.105 H 315.4°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#330842
RGBrgb(51, 8, 66)
HSLhsl(284, 78%, 15%)
HSVhsv(284, 88%, 26%)
CMYKcmyk(22.7%, 87.9%, 0%, 74.1%)
CIE-LABlab(11.07, 30.72, -26.21)
CIE-LCHlch(11.07, 40.38, 319.53°)
OKLaboklab(24.71% 0.0749 -0.074)
OKLCHoklch(24.71% 0.105 315.4)
XYZxyz(2.4353, 1.2709, 5.2702)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330842 #174208
analogous
#160842 #330842 #420834
triadic
#330842 #423308 #084233
tetradic
#330842 #421608 #174208 #083442
square
#330842 #421608 #174208 #083442
split-complementary
#330842 #344208 #084216
monochromatic
#15031B #15031B #330842 #5D0F79 #8715AF

Accessibility & contrast

On white

16.74
#330842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#330842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330842
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330842#FFFFFF#000000##FFFFFF
##3308421.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#061F41
Tritanopia (blue-blind)
#321525
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #330842;
/* rgb */ color: rgb(51, 8, 66);
/* oklch */ color: oklch(24.7% 0.105 315.4);
Tailwind
colors: {
  custom: {
    50: '#6d4d77',
    500: '#330842',
    950: '#000000',
  },
}
SCSS
$custom: #330842;
$custom-light: #6d4d77;
$custom-dark: #000000;
JSON
{
  "hex": "#330842",
  "rgb": {
    "r": 51,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 284.483,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24714,
    "c": 0.10529,
    "h": 315.4
  },
  "luminance": 0.01271
}

Semantic roles & 50–950 ramp

primary
#330842
secondary
#3D8025
accent
#F53365
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #330842

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

Preview Lab → · Contrast checker → · Palette generator →

#330842 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva