#330740#330740

#330740 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.4% C 0.105 H 317.0°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#330740
RGBrgb(51, 7, 64)
HSLhsl(286, 80%, 14%)
HSVhsv(286, 89%, 25%)
CMYKcmyk(20.3%, 89.1%, 0%, 74.9%)
CIE-LABlab(10.75, 30.71, -25.32)
CIE-LCHlch(10.75, 39.80, 320.50°)
OKLaboklab(24.43% 0.0765 -0.0713)
OKLCHoklch(24.43% 0.105 317)
XYZxyz(2.3665, 1.2260, 4.9615)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330740 #144007
analogous
#170740 #330740 #400731
triadic
#330740 #403307 #074033
tetradic
#330740 #401707 #144007 #073140
square
#330740 #401707 #144007 #073140
split-complementary
#330740 #314007 #074017
monochromatic
#16031C #16031C #330740 #5F0D77 #8B13AE

Accessibility & contrast

On white

16.86
#330740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330740
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330740#FFFFFF#000000##FFFFFF
##3307401.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #330740;
/* rgb */ color: rgb(51, 7, 64);
/* oklch */ color: oklch(24.4% 0.105 317.0);
Tailwind
colors: {
  custom: {
    50: '#6d4d75',
    500: '#330740',
    950: '#000000',
  },
}
SCSS
$custom: #330740;
$custom-light: #6d4d75;
$custom-dark: #000000;
JSON
{
  "hex": "#330740",
  "rgb": {
    "r": 51,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 286.316,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24434,
    "c": 0.10457,
    "h": 317
  },
  "luminance": 0.01226
}

Semantic roles & 50–950 ramp

primary
#330740
secondary
#397F24
accent
#F7315E
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #330740

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

Preview Lab → · Contrast checker → · Palette generator →

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