#332283#332283

#332283 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.153 H 282.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#332283
RGBrgb(51, 34, 131)
HSLhsl(251, 59%, 32%)
HSVhsv(251, 74%, 51%)
CMYKcmyk(61.1%, 74%, 0%, 48.6%)
CIE-LABlab(21.89, 36.11, -51.71)
CIE-LCHlch(21.89, 63.07, 304.93°)
OKLaboklab(34.24% 0.0338 -0.149)
OKLCHoklch(34.24% 0.153 282.8)
XYZxyz(6.0327, 3.4862, 21.8233)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332283 #728322
analogous
#224283 #332283 #632283
triadic
#332283 #833322 #228333
tetradic
#332283 #832242 #728322 #228363
square
#332283 #832242 #728322 #228363
split-complementary
#332283 #836322 #428322
monochromatic
#0D0922 #201552 #332283 #462FB4 #654ED1

Accessibility & contrast

On white

12.37
#332283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#332283 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332283
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332283#FFFFFF#000000##FFFFFF
##3322831.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003886
Deuteranopia (green-blind)
#003181
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332283;
/* rgb */ color: rgb(51, 34, 131);
/* oklch */ color: oklch(34.2% 0.153 282.8);
Tailwind
colors: {
  custom: {
    50: '#755fa8',
    500: '#332283',
    950: '#000000',
  },
}
SCSS
$custom: #332283;
$custom-light: #755fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#332283",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 250.515,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34242,
    "c": 0.15277,
    "h": 282.8
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#332283
secondary
#A2B44C
accent
#E246C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #332283

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

Preview Lab → · Contrast checker → · Palette generator →

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