#332285#332285

#332285 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.155 H 282.4°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#332285
RGBrgb(51, 34, 133)
HSLhsl(250, 59%, 33%)
HSVhsv(250, 74%, 52%)
CMYKcmyk(61.7%, 74.4%, 0%, 47.8%)
CIE-LABlab(22.09, 36.76, -52.64)
CIE-LCHlch(22.09, 64.21, 304.92°)
OKLaboklab(34.44% 0.0333 -0.1517)
OKLCHoklch(34.44% 0.155 282.4)
XYZxyz(6.1696, 3.5409, 22.5441)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332285 #748522
analogous
#224285 #332285 #642285
triadic
#332285 #853322 #228533
tetradic
#332285 #852242 #748522 #228564
square
#332285 #852242 #748522 #228564
split-complementary
#332285 #856422 #428522
monochromatic
#0E0924 #201654 #332285 #462EB6 #664FD2

Accessibility & contrast

On white

12.29
#332285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#332285 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332285
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332285#FFFFFF#000000##FFFFFF
##3322851.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003183
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #332285;
/* rgb */ color: rgb(51, 34, 133);
/* oklch */ color: oklch(34.4% 0.155 282.4);
Tailwind
colors: {
  custom: {
    50: '#755fa9',
    500: '#332285',
    950: '#000000',
  },
}
SCSS
$custom: #332285;
$custom-light: #755fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#332285",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 250.303,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34442,
    "c": 0.15534,
    "h": 282.4
  },
  "luminance": 0.03541
}

Semantic roles & 50–950 ramp

primary
#332285
secondary
#A4B64D
accent
#E245C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332285

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

Preview Lab → · Contrast checker → · Palette generator →

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