#331344#331344

#331344 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.092 H 311.8°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#331344
RGBrgb(51, 19, 68)
HSLhsl(279, 56%, 17%)
HSVhsv(279, 72%, 27%)
CMYKcmyk(25%, 72.1%, 0%, 73.3%)
CIE-LABlab(13.15, 25.80, -24.27)
CIE-LCHlch(13.15, 35.42, 316.75°)
OKLaboklab(26.25% 0.0611 -0.0684)
OKLCHoklch(26.25% 0.092 311.8)
XYZxyz(2.6413, 1.5870, 5.6349)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331344 #244413
analogous
#1B1344 #331344 #44133D
triadic
#331344 #443313 #134433
tetradic
#331344 #441B13 #244413 #133D44
square
#331344 #441B13 #244413 #133D44
split-complementary
#331344 #3D4413 #13441B
monochromatic
#120718 #120718 #331344 #572074 #7B2EA4

Accessibility & contrast

On white

15.94
#331344 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#331344 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331344
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331344#FFFFFF#000000##FFFFFF
##3313441.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002045
Deuteranopia (green-blind)
#0F2243
Tritanopia (blue-blind)
#311D29
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #331344;
/* rgb */ color: rgb(51, 19, 68);
/* oklch */ color: oklch(26.2% 0.092 311.8);
Tailwind
colors: {
  custom: {
    50: '#6d5378',
    500: '#331344',
    950: '#000000',
  },
}
SCSS
$custom: #331344;
$custom-light: #6d5378;
$custom-dark: #000000;
JSON
{
  "hex": "#331344",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 68
  },
  "hsl": {
    "h": 279.184,
    "s": 56.322,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26248,
    "c": 0.09171,
    "h": 311.8
  },
  "luminance": 0.01587
}

Semantic roles & 50–950 ramp

primary
#331344
secondary
#4F7D36
accent
#E0487D
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331344

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

Preview Lab → · Contrast checker → · Palette generator →

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