#330741#330741

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

Color values

HEX#330741
RGBrgb(51, 7, 65)
HSLhsl(286, 81%, 14%)
HSVhsv(286, 89%, 25%)
CMYKcmyk(21.5%, 89.2%, 0%, 74.5%)
CIE-LABlab(10.83, 30.94, -25.89)
CIE-LCHlch(10.83, 40.34, 320.07°)
OKLaboklab(24.52% 0.0763 -0.073)
OKLCHoklch(24.52% 0.106 316.2)
XYZxyz(2.3952, 1.2375, 5.1127)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#330741 #154107
analogous
#160741 #330741 #410732
triadic
#330741 #413307 #074133
tetradic
#330741 #411607 #154107 #073241
square
#330741 #411607 #154107 #073241
split-complementary
#330741 #324107 #074116
monochromatic
#16031C #16031C #330741 #5E0D78 #8A13B0

Accessibility & contrast

On white

16.84
#330741 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #330741
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##330741#FFFFFF#000000##FFFFFF
##3307411.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B43
Deuteranopia (green-blind)
#061E40
Tritanopia (blue-blind)
#321424
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #330741;
/* rgb */ color: rgb(51, 7, 65);
/* oklch */ color: oklch(24.5% 0.106 316.2);
Tailwind
colors: {
  custom: {
    50: '#6d4d76',
    500: '#330741',
    950: '#000000',
  },
}
SCSS
$custom: #330741;
$custom-light: #6d4d76;
$custom-dark: #000000;
JSON
{
  "hex": "#330741",
  "rgb": {
    "r": 51,
    "g": 7,
    "b": 65
  },
  "hsl": {
    "h": 285.517,
    "s": 80.556,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24519,
    "c": 0.10558,
    "h": 316.2
  },
  "luminance": 0.01237
}

Semantic roles & 50–950 ramp

primary
#330741
secondary
#3A8024
accent
#F73161
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070108
muted
#7A777B

Preview Lab

Preview with #330741

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

Preview Lab → · Contrast checker → · Palette generator →

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