#330840#330840

#330840 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.5% C 0.103 H 316.8°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#330840
RGBrgb(51, 8, 64)
HSLhsl(286, 78%, 14%)
HSVhsv(286, 88%, 25%)
CMYKcmyk(20.3%, 87.5%, 0%, 74.9%)
CIE-LABlab(10.90, 30.26, -25.07)
CIE-LCHlch(10.90, 39.29, 320.36°)
OKLaboklab(24.55% 0.0753 -0.0706)
OKLCHoklch(24.55% 0.103 316.8)
XYZxyz(2.3773, 1.2477, 4.9651)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330840 #154008
analogous
#170840 #330840 #400831
triadic
#330840 #403308 #084033
tetradic
#330840 #401708 #154008 #083140
square
#330840 #401708 #154008 #083140
split-complementary
#330840 #314008 #084017
monochromatic
#16031B #16031B #330840 #5E0F76 #8A16AD

Accessibility & contrast

On white

16.81
#330840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330840
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330840#FFFFFF#000000##FFFFFF
##3308401.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B42
Deuteranopia (green-blind)
#081E3F
Tritanopia (blue-blind)
#321424
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #330840;
/* rgb */ color: rgb(51, 8, 64);
/* oklch */ color: oklch(24.5% 0.103 316.8);
Tailwind
colors: {
  custom: {
    50: '#6d4d75',
    500: '#330840',
    950: '#000000',
  },
}
SCSS
$custom: #330840;
$custom-light: #6d4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#330840",
  "rgb": {
    "r": 51,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 286.071,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24545,
    "c": 0.10322,
    "h": 316.8
  },
  "luminance": 0.01248
}

Semantic roles & 50–950 ramp

primary
#330840
secondary
#3A7E25
accent
#F43460
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #330840

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

Preview Lab → · Contrast checker → · Palette generator →

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