#331863#331863

#331863 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.124 H 294.0°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#331863
RGBrgb(51, 24, 99)
HSLhsl(262, 61%, 24%)
HSVhsv(262, 76%, 39%)
CMYKcmyk(48.5%, 75.8%, 0%, 61.2%)
CIE-LABlab(16.79, 31.78, -39.44)
CIE-LCHlch(16.79, 50.65, 308.86°)
OKLaboklab(29.67% 0.0503 -0.113)
OKLCHoklch(29.67% 0.124 294)
XYZxyz(3.9434, 2.2578, 12.0300)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331863 #486318
analogous
#182363 #331863 #591863
triadic
#331863 #633318 #186333
tetradic
#331863 #631823 #486318 #186359
square
#331863 #631823 #486318 #186359
split-complementary
#331863 #635918 #236318
monochromatic
#0D0619 #1A0C32 #331863 #4C2494 #6630C6

Accessibility & contrast

On white

14.47
#331863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#331863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331863
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331863#FFFFFF#000000##FFFFFF
##3318631.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#252B3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331863;
/* rgb */ color: rgb(51, 24, 99);
/* oklch */ color: oklch(29.7% 0.124 294.0);
Tailwind
colors: {
  custom: {
    50: '#705790',
    500: '#331863',
    950: '#000000',
  },
}
SCSS
$custom: #331863;
$custom-light: #705790;
$custom-dark: #000000;
JSON
{
  "hex": "#331863",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 261.6,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29672,
    "c": 0.12364,
    "h": 294
  },
  "luminance": 0.02258
}

Semantic roles & 50–950 ramp

primary
#331863
secondary
#78993E
accent
#E444AA
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #331863

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

Preview Lab → · Contrast checker → · Palette generator →

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