#331950#331950

#331950 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.097 H 302.3°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#331950
RGBrgb(51, 25, 80)
HSLhsl(268, 52%, 21%)
HSVhsv(268, 69%, 31%)
CMYKcmyk(36.3%, 68.8%, 0%, 68.6%)
CIE-LABlab(15.37, 25.56, -28.98)
CIE-LCHlch(15.37, 38.64, 311.40°)
OKLaboklab(28.15% 0.052 -0.0822)
OKLCHoklch(28.15% 0.097 302.3)
XYZxyz(3.1605, 1.9783, 7.8032)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331950 #365019
analogous
#191A50 #331950 #4E1950
triadic
#331950 #503319 #195033
tetradic
#331950 #50191A #365019 #19504E
square
#331950 #50191A #365019 #19504E
split-complementary
#331950 #504E19 #1A5019
monochromatic
#0F0717 #150A21 #331950 #51287F #6E36AD

Accessibility & contrast

On white

15.05
#331950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331950
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331950#FFFFFF#000000##FFFFFF
##3319501.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#07264F
Tritanopia (blue-blind)
#2D2531
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331950;
/* rgb */ color: rgb(51, 25, 80);
/* oklch */ color: oklch(28.1% 0.097 302.3);
Tailwind
colors: {
  custom: {
    50: '#6d5781',
    500: '#331950',
    950: '#000000',
  },
}
SCSS
$custom: #331950;
$custom-light: #6d5781;
$custom-dark: #000000;
JSON
{
  "hex": "#331950",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 268.364,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28149,
    "c": 0.09727,
    "h": 302.3
  },
  "luminance": 0.01978
}

Semantic roles & 50–950 ramp

primary
#331950
secondary
#64863E
accent
#DC4C98
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331950

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

Preview Lab → · Contrast checker → · Palette generator →

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