#331250#331250

#331250 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.108 H 304.4°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#331250
RGBrgb(51, 18, 80)
HSLhsl(272, 63%, 19%)
HSVhsv(272, 78%, 31%)
CMYKcmyk(36.3%, 77.5%, 0%, 68.6%)
CIE-LABlab(13.92, 29.57, -31.34)
CIE-LCHlch(13.92, 43.09, 313.34°)
OKLaboklab(27.1% 0.061 -0.0891)
OKLCHoklch(27.1% 0.108 304.4)
XYZxyz(3.0292, 1.7156, 7.7594)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331250 #2F5012
analogous
#141250 #331250 #50124E
triadic
#331250 #503312 #125033
tetradic
#331250 #501412 #2F5012 #124E50
square
#331250 #501412 #2F5012 #124E50
split-complementary
#331250 #4E5012 #125014
monochromatic
#100619 #13071E #331250 #531D82 #7328B4

Accessibility & contrast

On white

15.63
#331250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331250
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331250#FFFFFF#000000##FFFFFF
##3312501.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331250;
/* rgb */ color: rgb(51, 18, 80);
/* oklch */ color: oklch(27.1% 0.108 304.4);
Tailwind
colors: {
  custom: {
    50: '#6e5382',
    500: '#331250',
    950: '#000000',
  },
}
SCSS
$custom: #331250;
$custom-light: #6e5382;
$custom-dark: #000000;
JSON
{
  "hex": "#331250",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 271.935,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27104,
    "c": 0.10797,
    "h": 304.4
  },
  "luminance": 0.01716
}

Semantic roles & 50–950 ramp

primary
#331250
secondary
#5C8935
accent
#E6418F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #331250

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

Preview Lab → · Contrast checker → · Palette generator →

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