#331882#331882

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

Color values

HEX#331882
RGBrgb(51, 24, 130)
HSLhsl(255, 69%, 30%)
HSVhsv(255, 82%, 51%)
CMYKcmyk(60.8%, 81.5%, 0%, 49%)
CIE-LABlab(19.92, 41.12, -54.33)
CIE-LCHlch(19.92, 68.14, 307.12°)
OKLaboklab(32.82% 0.0414 -0.1566)
OKLCHoklch(32.82% 0.162 284.8)
XYZxyz(5.7199, 2.9684, 21.3863)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331882 #678218
analogous
#183282 #331882 #681882
triadic
#331882 #823318 #188233
tetradic
#331882 #821832 #678218 #188268
square
#331882 #821832 #678218 #188268
split-complementary
#331882 #826818 #328218
monochromatic
#0A051B #1F0E4E #331882 #4722B6 #633ADB

Accessibility & contrast

On white

13.18
#331882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#331882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331882
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331882#FFFFFF#000000##FFFFFF
##3318821.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#03374D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #331882;
/* rgb */ color: rgb(51, 24, 130);
/* oklch */ color: oklch(32.8% 0.162 284.8);
Tailwind
colors: {
  custom: {
    50: '#7659a7',
    500: '#331882',
    950: '#000000',
  },
}
SCSS
$custom: #331882;
$custom-light: #7659a7;
$custom-dark: #000000;
JSON
{
  "hex": "#331882",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 255.283,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32821,
    "c": 0.16195,
    "h": 284.8
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#331882
secondary
#98B640
accent
#EC3CBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #331882

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

Preview Lab → · Contrast checker → · Palette generator →

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