#331355#331355

#331355 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.113 H 301.4°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#331355
RGBrgb(51, 19, 85)
HSLhsl(269, 63%, 20%)
HSVhsv(269, 78%, 33%)
CMYKcmyk(40%, 77.6%, 0%, 66.7%)
CIE-LABlab(14.54, 30.43, -33.73)
CIE-LCHlch(14.54, 45.42, 312.06°)
OKLaboklab(27.69% 0.0588 -0.0961)
OKLCHoklch(27.69% 0.113 301.4)
XYZxyz(3.2374, 1.8254, 8.7743)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331355 #355513
analogous
#131455 #331355 #541355
triadic
#331355 #553313 #135533
tetradic
#331355 #551314 #355513 #135554
square
#331355 #551314 #355513 #135554
split-complementary
#331355 #555413 #145513
monochromatic
#0F0619 #150823 #331355 #511E87 #6F29B9

Accessibility & contrast

On white

15.38
#331355 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331355 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331355
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331355#FFFFFF#000000##FFFFFF
##3313551.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#2C2332
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331355;
/* rgb */ color: rgb(51, 19, 85);
/* oklch */ color: oklch(27.7% 0.113 301.4);
Tailwind
colors: {
  custom: {
    50: '#6e5485',
    500: '#331355',
    950: '#000000',
  },
}
SCSS
$custom: #331355;
$custom-light: #6e5485;
$custom-dark: #000000;
JSON
{
  "hex": "#331355",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 85
  },
  "hsl": {
    "h": 269.091,
    "s": 63.462,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27685,
    "c": 0.1127,
    "h": 301.4
  },
  "luminance": 0.01825
}

Semantic roles & 50–950 ramp

primary
#331355
secondary
#638D36
accent
#E64196
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331355

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

Preview Lab → · Contrast checker → · Palette generator →

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