#331864#331864

#331864 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.8% C 0.125 H 293.6°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#331864
RGBrgb(51, 24, 100)
HSLhsl(261, 61%, 24%)
HSVhsv(261, 76%, 39%)
CMYKcmyk(49%, 76%, 0%, 60.8%)
CIE-LABlab(16.88, 32.07, -39.95)
CIE-LCHlch(16.88, 51.23, 308.76°)
OKLaboklab(29.77% 0.05 -0.1145)
OKLCHoklch(29.77% 0.125 293.6)
XYZxyz(3.9915, 2.2771, 12.2833)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331864 #496418
analogous
#182364 #331864 #591864
triadic
#331864 #643318 #186433
tetradic
#331864 #641823 #496418 #186459
square
#331864 #641823 #496418 #186459
split-complementary
#331864 #645918 #236418
monochromatic
#0D0619 #1A0C33 #331864 #4C2495 #6530C7

Accessibility & contrast

On white

14.43
#331864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331864
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331864#FFFFFF#000000##FFFFFF
##3318641.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A66
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#252C3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331864;
/* rgb */ color: rgb(51, 24, 100);
/* oklch */ color: oklch(29.8% 0.125 293.6);
Tailwind
colors: {
  custom: {
    50: '#705791',
    500: '#331864',
    950: '#000000',
  },
}
SCSS
$custom: #331864;
$custom-light: #705791;
$custom-dark: #000000;
JSON
{
  "hex": "#331864",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 261.316,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29767,
    "c": 0.12492,
    "h": 293.6
  },
  "luminance": 0.02277
}

Semantic roles & 50–950 ramp

primary
#331864
secondary
#799A3E
accent
#E443AB
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331864

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

Preview Lab → · Contrast checker → · Palette generator →

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