#331363#331363

#331363 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.130 H 295.2°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#331363
RGBrgb(51, 19, 99)
HSLhsl(264, 68%, 23%)
HSVhsv(264, 81%, 39%)
CMYKcmyk(48.5%, 80.8%, 0%, 61.2%)
CIE-LABlab(15.85, 34.42, -40.97)
CIE-LCHlch(15.85, 53.51, 310.03°)
OKLaboklab(29.01% 0.0552 -0.1174)
OKLCHoklch(29.01% 0.13 295.2)
XYZxyz(3.8496, 2.0703, 11.9987)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331363 #436313
analogous
#131B63 #331363 #5B1363
triadic
#331363 #633313 #136333
tetradic
#331363 #63131B #436313 #13635B
square
#331363 #63131B #436313 #13635B
split-complementary
#331363 #635B13 #1B6313
monochromatic
#0D051A #190930 #331363 #4D1D96 #6827CA

Accessibility & contrast

On white

14.85
#331363 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331363 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331363
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331363#FFFFFF#000000##FFFFFF
##3313631.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#25293A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331363;
/* rgb */ color: rgb(51, 19, 99);
/* oklch */ color: oklch(29.0% 0.130 295.2);
Tailwind
colors: {
  custom: {
    50: '#705590',
    500: '#331363',
    950: '#000000',
  },
}
SCSS
$custom: #331363;
$custom-light: #705590;
$custom-dark: #000000;
JSON
{
  "hex": "#331363",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 99
  },
  "hsl": {
    "h": 264,
    "s": 67.797,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29014,
    "c": 0.12974,
    "h": 295.2
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#331363
secondary
#739B37
accent
#EB3DA5
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #331363

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

Preview Lab → · Contrast checker → · Palette generator →

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