#331963#331963

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

Color values

HEX#331963
RGBrgb(51, 25, 99)
HSLhsl(261, 60%, 24%)
HSVhsv(261, 75%, 39%)
CMYKcmyk(48.5%, 74.7%, 0%, 61.2%)
CIE-LABlab(16.99, 31.21, -39.11)
CIE-LCHlch(16.99, 50.04, 308.59°)
OKLaboklab(29.82% 0.0492 -0.112)
OKLCHoklch(29.82% 0.122 293.7)
XYZxyz(3.9644, 2.2998, 12.0370)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331963 #496319
analogous
#192463 #331963 #581963
triadic
#331963 #633319 #196333
tetradic
#331963 #631924 #496319 #196358
square
#331963 #631924 #496319 #196358
split-complementary
#331963 #635819 #246319
monochromatic
#0D0618 #1A0D32 #331963 #4C2594 #6532C5

Accessibility & contrast

On white

14.38
#331963 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331963
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331963#FFFFFF#000000##FFFFFF
##3319631.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331963;
/* rgb */ color: rgb(51, 25, 99);
/* oklch */ color: oklch(29.8% 0.122 293.7);
Tailwind
colors: {
  custom: {
    50: '#705890',
    500: '#331963',
    950: '#000000',
  },
}
SCSS
$custom: #331963;
$custom-light: #705890;
$custom-dark: #000000;
JSON
{
  "hex": "#331963",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 99
  },
  "hsl": {
    "h": 261.081,
    "s": 59.677,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29816,
    "c": 0.12234,
    "h": 293.7
  },
  "luminance": 0.023
}

Semantic roles & 50–950 ramp

primary
#331963
secondary
#79993F
accent
#E345AB
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #331963

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

Preview Lab → · Contrast checker → · Palette generator →

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