#331983#331983

#331983 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.162 H 284.4°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#331983
RGBrgb(51, 25, 131)
HSLhsl(255, 68%, 31%)
HSVhsv(255, 81%, 51%)
CMYKcmyk(61.1%, 80.9%, 0%, 48.6%)
CIE-LABlab(20.19, 40.94, -54.51)
CIE-LCHlch(20.19, 68.17, 306.91°)
OKLaboklab(33.05% 0.0404 -0.1571)
OKLCHoklch(33.05% 0.162 284.4)
XYZxyz(5.8084, 3.0374, 21.7485)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331983 #698319
analogous
#193483 #331983 #681983
triadic
#331983 #833319 #198333
tetradic
#331983 #831934 #698319 #198368
square
#331983 #831934 #698319 #198368
split-complementary
#331983 #836819 #348319
monochromatic
#0B051C #1F0F50 #331983 #4723B6 #633DDA

Accessibility & contrast

On white

13.06
#331983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#331983 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331983
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331983#FFFFFF#000000##FFFFFF
##3319831.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#01384E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #331983;
/* rgb */ color: rgb(51, 25, 131);
/* oklch */ color: oklch(33.0% 0.162 284.4);
Tailwind
colors: {
  custom: {
    50: '#765aa8',
    500: '#331983',
    950: '#000000',
  },
}
SCSS
$custom: #331983;
$custom-light: #765aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#331983",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 254.717,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33045,
    "c": 0.16221,
    "h": 284.4
  },
  "luminance": 0.03038
}

Semantic roles & 50–950 ramp

primary
#331983
secondary
#9AB741
accent
#EB3DC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331983

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

Preview Lab → · Contrast checker → · Palette generator →

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