#332277#332277

#332277 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.1% C 0.137 H 285.3°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#332277
RGBrgb(51, 34, 119)
HSLhsl(252, 56%, 30%)
HSVhsv(252, 71%, 47%)
CMYKcmyk(57.1%, 71.4%, 0%, 53.3%)
CIE-LABlab(20.75, 32.21, -45.97)
CIE-LCHlch(20.75, 56.13, 305.02°)
OKLaboklab(33.07% 0.0362 -0.1322)
OKLCHoklch(33.07% 0.137 285.3)
XYZxyz(5.2660, 3.1795, 17.7854)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332277 #667722
analogous
#223B77 #332277 #5E2277
triadic
#332277 #773322 #227733
tetradic
#332277 #77223B #667722 #22775E
square
#332277 #77223B #667722 #22775E
split-complementary
#332277 #775E22 #3B7722
monochromatic
#0A0718 #1F1447 #332277 #4730A7 #6349CB

Accessibility & contrast

On white

12.84
#332277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#332277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332277
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332277#FFFFFF#000000##FFFFFF
##3322771.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347A
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#153849
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #332277;
/* rgb */ color: rgb(51, 34, 119);
/* oklch */ color: oklch(33.1% 0.137 285.3);
Tailwind
colors: {
  custom: {
    50: '#735e9f',
    500: '#332277',
    950: '#000000',
  },
}
SCSS
$custom: #332277;
$custom-light: #735e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#332277",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 252,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.33073,
    "c": 0.13701,
    "h": 285.3
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#332277
secondary
#97AA4B
accent
#DF49C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #332277

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

Preview Lab → · Contrast checker → · Palette generator →

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