#332271#332271

#332271 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.129 H 286.7°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#332271
RGBrgb(51, 34, 113)
HSLhsl(253, 54%, 29%)
HSVhsv(253, 70%, 44%)
CMYKcmyk(54.9%, 69.9%, 0%, 55.7%)
CIE-LABlab(20.20, 30.26, -43.00)
CIE-LCHlch(20.20, 52.58, 305.13°)
OKLaboklab(32.51% 0.0371 -0.1235)
OKLCHoklch(32.51% 0.129 286.7)
XYZxyz(4.9170, 3.0399, 15.9472)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332271 #607122
analogous
#223971 #332271 #5B2271
triadic
#332271 #713322 #227133
tetradic
#332271 #712239 #607122 #22715B
square
#332271 #712239 #607122 #22715B
split-complementary
#332271 #715B22 #397122
monochromatic
#0B0718 #1E1442 #332271 #4830A0 #6246C7

Accessibility & contrast

On white

13.06
#332271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#332271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332271
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332271#FFFFFF#000000##FFFFFF
##3322711.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#1B3646
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #332271;
/* rgb */ color: rgb(51, 34, 113);
/* oklch */ color: oklch(32.5% 0.129 286.7);
Tailwind
colors: {
  custom: {
    50: '#715e9b',
    500: '#332271',
    950: '#000000',
  },
}
SCSS
$custom: #332271;
$custom-light: #715e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#332271",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 252.911,
    "s": 53.741,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32512,
    "c": 0.12893,
    "h": 286.7
  },
  "luminance": 0.0304
}

Semantic roles & 50–950 ramp

primary
#332271
secondary
#91A44A
accent
#DD4BBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #332271

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

Preview Lab → · Contrast checker → · Palette generator →

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