#331850#331850

#331850 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.099 H 302.6°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#331850
RGBrgb(51, 24, 80)
HSLhsl(269, 54%, 20%)
HSVhsv(269, 70%, 31%)
CMYKcmyk(36.3%, 70%, 0%, 68.6%)
CIE-LABlab(15.15, 26.16, -29.34)
CIE-LCHlch(15.15, 39.31, 311.72°)
OKLaboklab(27.99% 0.0533 -0.0833)
OKLCHoklch(27.99% 0.099 302.6)
XYZxyz(3.1395, 1.9363, 7.7962)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331850 #355018
analogous
#181950 #331850 #4F1850
triadic
#331850 #503318 #185033
tetradic
#331850 #501819 #355018 #18504F
square
#331850 #501819 #355018 #18504F
split-complementary
#331850 #504F18 #195018
monochromatic
#0F0718 #150A21 #331850 #51267F #6F34AE

Accessibility & contrast

On white

15.14
#331850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331850
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331850#FFFFFF#000000##FFFFFF
##3318501.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#06264F
Tritanopia (blue-blind)
#2D2431
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331850;
/* rgb */ color: rgb(51, 24, 80);
/* oklch */ color: oklch(28.0% 0.099 302.6);
Tailwind
colors: {
  custom: {
    50: '#6d5781',
    500: '#331850',
    950: '#000000',
  },
}
SCSS
$custom: #331850;
$custom-light: #6d5781;
$custom-dark: #000000;
JSON
{
  "hex": "#331850",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 268.929,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27987,
    "c": 0.0989,
    "h": 302.6
  },
  "luminance": 0.01936
}

Semantic roles & 50–950 ramp

primary
#331850
secondary
#63873D
accent
#DD4B97
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331850

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

Preview Lab → · Contrast checker → · Palette generator →

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