#331785#331785

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

Color values

HEX#331785
RGBrgb(51, 23, 133)
HSLhsl(255, 71%, 31%)
HSVhsv(255, 83%, 52%)
CMYKcmyk(61.7%, 82.7%, 0%, 47.8%)
CIE-LABlab(20.08, 42.49, -55.95)
CIE-LCHlch(20.08, 70.26, 307.21°)
OKLaboklab(33.03% 0.041 -0.1613)
OKLCHoklch(33.03% 0.166 284.3)
XYZxyz(5.9040, 3.0097, 22.4556)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331785 #698517
analogous
#173285 #331785 #6A1785
triadic
#331785 #853317 #178533
tetradic
#331785 #851732 #698517 #17856A
square
#331785 #851732 #698517 #17856A
split-complementary
#331785 #856A17 #328517
monochromatic
#0B051D #1F0E51 #331785 #4720B9 #633ADD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##331785#FFFFFF#000000##FFFFFF
##3317851.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)
#003488
Deuteranopia (green-blind)
#002D83
Tritanopia (blue-blind)
#00384F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331785;
/* rgb */ color: rgb(51, 23, 133);
/* oklch */ color: oklch(33.0% 0.166 284.3);
Tailwind
colors: {
  custom: {
    50: '#7659aa',
    500: '#331785',
    950: '#000000',
  },
}
SCSS
$custom: #331785;
$custom-light: #7659aa;
$custom-dark: #000000;
JSON
{
  "hex": "#331785",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 255.273,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33034,
    "c": 0.16641,
    "h": 284.3
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#331785
secondary
#9AB93F
accent
#ED3BC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #331785

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

Preview Lab → · Contrast checker → · Palette generator →

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