#330340#330340

#330340 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 24.0% C 0.110 H 317.5°. Best body text is #FFFFFF at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#330340
RGBrgb(51, 3, 64)
HSLhsl(287, 91%, 13%)
HSVhsv(287, 95%, 25%)
CMYKcmyk(20.3%, 95.3%, 0%, 74.9%)
CIE-LABlab(10.10, 32.60, -26.36)
CIE-LCHlch(10.10, 41.93, 321.04°)
OKLaboklab(23.98% 0.0813 -0.0744)
OKLCHoklch(23.98% 0.11 317.5)
XYZxyz(2.3231, 1.1392, 4.9470)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330340 #104003
analogous
#140340 #330340 #40032E
triadic
#330340 #403303 #034033
tetradic
#330340 #401403 #104003 #032E40
square
#330340 #401403 #104003 #032E40
split-complementary
#330340 #2E4003 #034014
monochromatic
#17011D #17011D #330340 #62067A #9008B5

Accessibility & contrast

On white

17.10
#330340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#330340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #330340
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330340#FFFFFF#000000##FFFFFF
##3303401.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#041D3F
Tritanopia (blue-blind)
#321122
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #330340;
/* rgb */ color: rgb(51, 3, 64);
/* oklch */ color: oklch(24.0% 0.110 317.5);
Tailwind
colors: {
  custom: {
    50: '#6e4b75',
    500: '#330340',
    950: '#000000',
  },
}
SCSS
$custom: #330340;
$custom-light: #6e4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#330340",
  "rgb": {
    "r": 51,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 287.213,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23981,
    "c": 0.11017,
    "h": 317.5
  },
  "luminance": 0.01139
}

Semantic roles & 50–950 ramp

primary
#330340
secondary
#32821D
accent
#FF2956
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #330340

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

Preview Lab → · Contrast checker → · Palette generator →

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