#331366#331366

#331366 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.133 H 294.0°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#331366
RGBrgb(51, 19, 102)
HSLhsl(263, 69%, 24%)
HSVhsv(263, 81%, 40%)
CMYKcmyk(50%, 81.4%, 0%, 60%)
CIE-LABlab(16.15, 35.28, -42.46)
CIE-LCHlch(16.15, 55.21, 309.72°)
OKLaboklab(29.31% 0.0543 -0.1218)
OKLCHoklch(29.31% 0.133 294)
XYZxyz(3.9957, 2.1287, 12.7682)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331366 #466613
analogous
#131C66 #331366 #5C1366
triadic
#331366 #663313 #136633
tetradic
#331366 #66131C #466613 #13665C
square
#331366 #66131C #466613 #13665C
split-complementary
#331366 #665C13 #1C6613
monochromatic
#0D051A #190932 #331366 #4D1D9A #6726CD

Accessibility & contrast

On white

14.73
#331366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331366
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331366#FFFFFF#000000##FFFFFF
##3313661.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002764
Tritanopia (blue-blind)
#242A3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331366;
/* rgb */ color: rgb(51, 19, 102);
/* oklch */ color: oklch(29.3% 0.133 294.0);
Tailwind
colors: {
  custom: {
    50: '#715592',
    500: '#331366',
    950: '#000000',
  },
}
SCSS
$custom: #331366;
$custom-light: #715592;
$custom-dark: #000000;
JSON
{
  "hex": "#331366",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 263.133,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29312,
    "c": 0.13334,
    "h": 294
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#331366
secondary
#769D37
accent
#EB3CA8
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331366

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

Preview Lab → · Contrast checker → · Palette generator →

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