#331150#331150

#331150 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.109 H 304.6°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#331150
RGBrgb(51, 17, 80)
HSLhsl(272, 65%, 19%)
HSVhsv(272, 79%, 31%)
CMYKcmyk(36.3%, 78.8%, 0%, 68.6%)
CIE-LABlab(13.73, 30.09, -31.64)
CIE-LCHlch(13.73, 43.66, 313.57°)
OKLaboklab(26.97% 0.0621 -0.09)
OKLCHoklch(26.97% 0.109 304.6)
XYZxyz(3.0133, 1.6839, 7.7541)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331150 #2E5011
analogous
#141150 #331150 #50114E
triadic
#331150 #503311 #115033
tetradic
#331150 #501411 #2E5011 #114E50
square
#331150 #501411 #2E5011 #114E50
split-complementary
#331150 #4E5011 #115014
monochromatic
#100519 #13061E #331150 #531C82 #7326B5

Accessibility & contrast

On white

15.71
#331150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#331150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331150
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331150#FFFFFF#000000##FFFFFF
##3311501.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331150;
/* rgb */ color: rgb(51, 17, 80);
/* oklch */ color: oklch(27.0% 0.109 304.6);
Tailwind
colors: {
  custom: {
    50: '#6e5282',
    500: '#331150',
    950: '#000000',
  },
}
SCSS
$custom: #331150;
$custom-light: #6e5282;
$custom-dark: #000000;
JSON
{
  "hex": "#331150",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 272.381,
    "s": 64.948,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26972,
    "c": 0.10935,
    "h": 304.6
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#331150
secondary
#5B8933
accent
#E8408D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #331150

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

Preview Lab → · Contrast checker → · Palette generator →

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