#331480#331480

#331480 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.163 H 285.9°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#331480
RGBrgb(51, 20, 128)
HSLhsl(257, 73%, 29%)
HSVhsv(257, 84%, 50%)
CMYKcmyk(60.2%, 84.4%, 0%, 49.8%)
CIE-LABlab(19.07, 42.37, -54.47)
CIE-LCHlch(19.07, 69.01, 307.88°)
OKLaboklab(32.17% 0.0446 -0.1569)
OKLCHoklch(32.17% 0.163 285.9)
XYZxyz(5.5105, 2.7623, 20.6607)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331480 #618014
analogous
#142B80 #331480 #691480
triadic
#331480 #803314 #148033
tetradic
#331480 #80142B #618014 #148069
square
#331480 #80142B #618014 #148069
split-complementary
#331480 #806914 #2B8014
monochromatic
#0B041A #1E0C4B #331480 #481CB5 #6230DF

Accessibility & contrast

On white

13.53
#331480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#331480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331480
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331480#FFFFFF#000000##FFFFFF
##3314801.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#08354B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331480;
/* rgb */ color: rgb(51, 20, 128);
/* oklch */ color: oklch(32.2% 0.163 285.9);
Tailwind
colors: {
  custom: {
    50: '#7557a6',
    500: '#331480',
    950: '#000000',
  },
}
SCSS
$custom: #331480;
$custom-light: #7557a6;
$custom-dark: #000000;
JSON
{
  "hex": "#331480",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 257.222,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32167,
    "c": 0.16313,
    "h": 285.9
  },
  "luminance": 0.02763
}

Semantic roles & 50–950 ramp

primary
#331480
secondary
#92B53B
accent
#F038BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #331480

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

Preview Lab → · Contrast checker → · Palette generator →

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