#331985#331985

#331985 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.165 H 284.0°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#331985
RGBrgb(51, 25, 133)
HSLhsl(254, 68%, 31%)
HSVhsv(254, 81%, 52%)
CMYKcmyk(61.7%, 81.2%, 0%, 47.8%)
CIE-LABlab(20.41, 41.54, -55.41)
CIE-LCHlch(20.41, 69.26, 306.86°)
OKLaboklab(33.26% 0.0398 -0.1597)
OKLCHoklch(33.26% 0.165 284)
XYZxyz(5.9452, 3.0921, 22.4693)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331985 #6B8519
analogous
#193585 #331985 #691985
triadic
#331985 #853319 #198533
tetradic
#331985 #851935 #6B8519 #198569
square
#331985 #851935 #6B8519 #198569
split-complementary
#331985 #856919 #358519
monochromatic
#0B061E #1F0F51 #331985 #4723B9 #643EDB

Accessibility & contrast

On white

12.97
#331985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#331985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331985
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331985#FFFFFF#000000##FFFFFF
##3319851.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #331985;
/* rgb */ color: rgb(51, 25, 133);
/* oklch */ color: oklch(33.3% 0.165 284.0);
Tailwind
colors: {
  custom: {
    50: '#765aaa',
    500: '#331985',
    950: '#000000',
  },
}
SCSS
$custom: #331985;
$custom-light: #765aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#331985",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 254.444,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3326,
    "c": 0.16461,
    "h": 284
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#331985
secondary
#9CB941
accent
#EB3DC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331985

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

Preview Lab → · Contrast checker → · Palette generator →

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