#331982#331982

#331982 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.161 H 284.6°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#331982
RGBrgb(51, 25, 130)
HSLhsl(255, 68%, 30%)
HSVhsv(255, 81%, 51%)
CMYKcmyk(60.8%, 80.8%, 0%, 49%)
CIE-LABlab(20.09, 40.64, -54.05)
CIE-LCHlch(20.09, 67.63, 306.94°)
OKLaboklab(32.94% 0.0407 -0.1558)
OKLCHoklch(32.94% 0.161 284.6)
XYZxyz(5.7409, 3.0104, 21.3933)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331982 #688219
analogous
#193382 #331982 #671982
triadic
#331982 #823319 #198233
tetradic
#331982 #821933 #688219 #198267
square
#331982 #821933 #688219 #198267
split-complementary
#331982 #826719 #338219
monochromatic
#0B051B #1F0F4F #331982 #4723B5 #633CD9

Accessibility & contrast

On white

13.11
#331982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#331982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331982
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331982#FFFFFF#000000##FFFFFF
##3319821.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#03384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331982;
/* rgb */ color: rgb(51, 25, 130);
/* oklch */ color: oklch(32.9% 0.161 284.6);
Tailwind
colors: {
  custom: {
    50: '#755aa7',
    500: '#331982',
    950: '#000000',
  },
}
SCSS
$custom: #331982;
$custom-light: #755aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#331982",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 254.857,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32938,
    "c": 0.161,
    "h": 284.6
  },
  "luminance": 0.03011
}

Semantic roles & 50–950 ramp

primary
#331982
secondary
#99B641
accent
#EB3DC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331982

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

Preview Lab → · Contrast checker → · Palette generator →

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