#331367#331367

#331367 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.135 H 293.6°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#331367
RGBrgb(51, 19, 103)
HSLhsl(263, 69%, 24%)
HSVhsv(263, 82%, 40%)
CMYKcmyk(50.5%, 81.6%, 0%, 59.6%)
CIE-LABlab(16.25, 35.57, -42.96)
CIE-LCHlch(16.25, 55.77, 309.63°)
OKLaboklab(29.41% 0.054 -0.1232)
OKLCHoklch(29.41% 0.135 293.6)
XYZxyz(4.0456, 2.1487, 13.0309)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331367 #476713
analogous
#131D67 #331367 #5D1367
triadic
#331367 #673313 #136733
tetradic
#331367 #67131D #476713 #13675D
square
#331367 #67131D #476713 #13675D
split-complementary
#331367 #675D13 #1D6713
monochromatic
#0D051A #190933 #331367 #4D1D9B #6626CE

Accessibility & contrast

On white

14.69
#331367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331367
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331367#FFFFFF#000000##FFFFFF
##3313671.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#232A3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331367;
/* rgb */ color: rgb(51, 19, 103);
/* oklch */ color: oklch(29.4% 0.135 293.6);
Tailwind
colors: {
  custom: {
    50: '#715593',
    500: '#331367',
    950: '#000000',
  },
}
SCSS
$custom: #331367;
$custom-light: #715593;
$custom-dark: #000000;
JSON
{
  "hex": "#331367",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 262.857,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29413,
    "c": 0.13454,
    "h": 293.6
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#331367
secondary
#779E37
accent
#EC3CA9
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331367

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

Preview Lab → · Contrast checker → · Palette generator →

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