#331885#331885

#331885 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.166 H 284.1°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#331885
RGBrgb(51, 24, 133)
HSLhsl(255, 69%, 31%)
HSVhsv(255, 82%, 52%)
CMYKcmyk(61.7%, 82%, 0%, 47.8%)
CIE-LABlab(20.24, 42.02, -55.69)
CIE-LCHlch(20.24, 69.76, 307.04°)
OKLaboklab(33.15% 0.0404 -0.1605)
OKLCHoklch(33.15% 0.166 284.1)
XYZxyz(5.9242, 3.0501, 22.4623)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331885 #6A8518
analogous
#183485 #331885 #691885
triadic
#331885 #853318 #188533
tetradic
#331885 #851834 #6A8518 #188569
square
#331885 #851834 #6A8518 #188569
split-complementary
#331885 #856918 #348518
monochromatic
#0B051D #1F0F51 #331885 #4721B9 #633CDC

Accessibility & contrast

On white

13.04
#331885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331885
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331885#FFFFFF#000000##FFFFFF
##3318851.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331885;
/* rgb */ color: rgb(51, 24, 133);
/* oklch */ color: oklch(33.1% 0.166 284.1);
Tailwind
colors: {
  custom: {
    50: '#7659aa',
    500: '#331885',
    950: '#000000',
  },
}
SCSS
$custom: #331885;
$custom-light: #7659aa;
$custom-dark: #000000;
JSON
{
  "hex": "#331885",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 254.862,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33145,
    "c": 0.16552,
    "h": 284.1
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#331885
secondary
#9BB940
accent
#EC3CC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331885

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

Preview Lab → · Contrast checker → · Palette generator →

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