#331263#331263

#331263 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.131 H 295.4°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#331263
RGBrgb(51, 18, 99)
HSLhsl(264, 69%, 23%)
HSVhsv(264, 82%, 39%)
CMYKcmyk(48.5%, 81.8%, 0%, 61.2%)
CIE-LABlab(15.68, 34.91, -41.25)
CIE-LCHlch(15.68, 54.04, 310.24°)
OKLaboklab(28.89% 0.0561 -0.1182)
OKLCHoklch(28.89% 0.131 295.4)
XYZxyz(3.8331, 2.0372, 11.9932)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331263 #426312
analogous
#121A63 #331263 #5B1263
triadic
#331263 #633312 #126333
tetradic
#331263 #63121A #426312 #12635B
square
#331263 #63121A #426312 #12635B
split-complementary
#331263 #635B12 #1A6312
monochromatic
#0D051A #18092F #331263 #4E1B97 #6825CB

Accessibility & contrast

On white

14.92
#331263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331263
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331263#FFFFFF#000000##FFFFFF
##3312631.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331263;
/* rgb */ color: rgb(51, 18, 99);
/* oklch */ color: oklch(28.9% 0.131 295.4);
Tailwind
colors: {
  custom: {
    50: '#715490',
    500: '#331263',
    950: '#000000',
  },
}
SCSS
$custom: #331263;
$custom-light: #715490;
$custom-dark: #000000;
JSON
{
  "hex": "#331263",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 264.444,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28894,
    "c": 0.13086,
    "h": 295.4
  },
  "luminance": 0.02037
}

Semantic roles & 50–950 ramp

primary
#331263
secondary
#729B36
accent
#EC3CA4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #331263

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

Preview Lab → · Contrast checker → · Palette generator →

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