#331896#331896

#331896 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.185 H 280.8°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#331896
RGBrgb(51, 24, 150)
HSLhsl(253, 72%, 34%)
HSVhsv(253, 84%, 59%)
CMYKcmyk(66%, 84%, 0%, 41.2%)
CIE-LABlab(22.15, 47.05, -63.13)
CIE-LCHlch(22.15, 78.73, 306.70°)
OKLaboklab(35.03% 0.0346 -0.1822)
OKLCHoklch(35.03% 0.185 280.8)
XYZxyz(7.1952, 3.5585, 29.1559)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331896 #7B9618
analogous
#183C96 #331896 #721896
triadic
#331896 #963318 #189633
tetradic
#331896 #96183C #7B9618 #189672
square
#331896 #96183C #7B9618 #189672
split-complementary
#331896 #967218 #3C9618
monochromatic
#0F072C #211061 #331896 #4520CB #6847E2

Accessibility & contrast

On white

12.27
#331896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#331896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331896
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331896#FFFFFF#000000##FFFFFF
##3318961.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003999
Deuteranopia (green-blind)
#003094
Tritanopia (blue-blind)
#004059
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #331896;
/* rgb */ color: rgb(51, 24, 150);
/* oklch */ color: oklch(35.0% 0.185 280.8);
Tailwind
colors: {
  custom: {
    50: '#7a5bb6',
    500: '#331896',
    950: '#000000',
  },
}
SCSS
$custom: #331896;
$custom-light: #7a5bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#331896",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 150
  },
  "hsl": {
    "h": 252.857,
    "s": 72.414,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3503,
    "c": 0.18545,
    "h": 280.8
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#331896
secondary
#A8C347
accent
#EF39C8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #331896

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

Preview Lab → · Contrast checker → · Palette generator →

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