#332575#332575

#332575 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.4% C 0.130 H 284.9°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#332575
RGBrgb(51, 37, 117)
HSLhsl(251, 52%, 30%)
HSVhsv(251, 68%, 46%)
CMYKcmyk(56.4%, 68.4%, 0%, 54.1%)
CIE-LABlab(21.25, 29.70, -43.87)
CIE-LCHlch(21.25, 52.98, 304.10°)
OKLaboklab(33.38% 0.0335 -0.126)
OKLCHoklch(33.38% 0.13 284.9)
XYZxyz(5.2367, 3.3110, 17.1893)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332575 #677525
analogous
#253F75 #332575 #5B2575
triadic
#332575 #753325 #257533
tetradic
#332575 #75253F #677525 #25755B
square
#332575 #75253F #677525 #25755B
split-complementary
#332575 #755B25 #3F7525
monochromatic
#0A0818 #1F1647 #332575 #4734A3 #634EC7

Accessibility & contrast

On white

12.63
#332575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#332575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332575
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332575#FFFFFF#000000##FFFFFF
##3325751.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#173949
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #332575;
/* rgb */ color: rgb(51, 37, 117);
/* oklch */ color: oklch(33.4% 0.130 284.9);
Tailwind
colors: {
  custom: {
    50: '#72609d',
    500: '#332575',
    950: '#000000',
  },
}
SCSS
$custom: #332575;
$custom-light: #72609d;
$custom-dark: #000000;
JSON
{
  "hex": "#332575",
  "rgb": {
    "r": 51,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 250.5,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33377,
    "c": 0.13038,
    "h": 284.9
  },
  "luminance": 0.03311
}

Semantic roles & 50–950 ramp

primary
#332575
secondary
#98A84E
accent
#DB4CC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #332575

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

Preview Lab → · Contrast checker → · Palette generator →

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