#331050#331050

#331050 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.111 H 304.8°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#331050
RGBrgb(51, 16, 80)
HSLhsl(273, 67%, 19%)
HSVhsv(273, 80%, 31%)
CMYKcmyk(36.3%, 80%, 0%, 68.6%)
CIE-LABlab(13.55, 30.60, -31.93)
CIE-LCHlch(13.55, 44.22, 313.78°)
OKLaboklab(26.85% 0.0633 -0.0908)
OKLCHoklch(26.85% 0.111 304.8)
XYZxyz(2.9982, 1.6536, 7.7491)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331050 #2D5010
analogous
#131050 #331050 #50104D
triadic
#331050 #503310 #105033
tetradic
#331050 #501310 #2D5010 #104D50
square
#331050 #501310 #2D5010 #104D50
split-complementary
#331050 #4D5010 #105013
monochromatic
#10051A #12061D #331050 #541A83 #7424B6

Accessibility & contrast

On white

15.78
#331050 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#331050 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331050
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331050#FFFFFF#000000##FFFFFF
##3310501.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002252
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#2E1F2F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331050;
/* rgb */ color: rgb(51, 16, 80);
/* oklch */ color: oklch(26.8% 0.111 304.8);
Tailwind
colors: {
  custom: {
    50: '#6e5282',
    500: '#331050',
    950: '#000000',
  },
}
SCSS
$custom: #331050;
$custom-light: #6e5282;
$custom-dark: #000000;
JSON
{
  "hex": "#331050",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 80
  },
  "hsl": {
    "h": 272.813,
    "s": 66.667,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26845,
    "c": 0.11069,
    "h": 304.8
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

primary
#331050
secondary
#5A8A32
accent
#EA3E8C
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #331050

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

Preview Lab → · Contrast checker → · Palette generator →

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