#331244#331244

#331244 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.093 H 312.0°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#331244
RGBrgb(51, 18, 68)
HSLhsl(280, 58%, 17%)
HSVhsv(280, 74%, 27%)
CMYKcmyk(25%, 73.5%, 0%, 73.3%)
CIE-LABlab(12.95, 26.36, -24.60)
CIE-LCHlch(12.95, 36.06, 316.98°)
OKLaboklab(26.1% 0.0625 -0.0693)
OKLCHoklch(26.1% 0.093 312)
XYZxyz(2.6247, 1.5538, 5.6294)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331244 #234412
analogous
#1A1244 #331244 #44123C
triadic
#331244 #443312 #124433
tetradic
#331244 #441A12 #234412 #123C44
square
#331244 #441A12 #234412 #123C44
split-complementary
#331244 #3C4412 #12441A
monochromatic
#120618 #120618 #331244 #571F74 #7C2CA5

Accessibility & contrast

On white

16.02
#331244 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#331244 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331244
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331244#FFFFFF#000000##FFFFFF
##3312441.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002046
Deuteranopia (green-blind)
#0D2243
Tritanopia (blue-blind)
#311C29
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #331244;
/* rgb */ color: rgb(51, 18, 68);
/* oklch */ color: oklch(26.1% 0.093 312.0);
Tailwind
colors: {
  custom: {
    50: '#6d5278',
    500: '#331244',
    950: '#000000',
  },
}
SCSS
$custom: #331244;
$custom-light: #6d5278;
$custom-dark: #000000;
JSON
{
  "hex": "#331244",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 68
  },
  "hsl": {
    "h": 279.6,
    "s": 58.14,
    "l": 16.863
  },
  "oklch": {
    "l": 0.26101,
    "c": 0.09335,
    "h": 312
  },
  "luminance": 0.01554
}

Semantic roles & 50–950 ramp

primary
#331244
secondary
#4D7D35
accent
#E1467B
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #331244

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

Preview Lab → · Contrast checker → · Palette generator →

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