#331055#331055

#331055 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.3% C 0.117 H 302.2°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#331055
RGBrgb(51, 16, 85)
HSLhsl(270, 68%, 20%)
HSVhsv(270, 81%, 33%)
CMYKcmyk(40%, 81.2%, 0%, 66.7%)
CIE-LABlab(14.00, 31.96, -34.61)
CIE-LCHlch(14.00, 47.10, 312.72°)
OKLaboklab(27.3% 0.0621 -0.0987)
OKLCHoklch(27.3% 0.117 302.2)
XYZxyz(3.1898, 1.7303, 8.7585)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331055 #325510
analogous
#111055 #331055 #551055
triadic
#331055 #553310 #105533
tetradic
#331055 #551110 #325510 #105555
square
#331055 #551110 #325510 #105555
split-complementary
#331055 #555510 #105511
monochromatic
#0F051A #140621 #331055 #521A89 #7123BC

Accessibility & contrast

On white

15.60
#331055 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331055 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331055
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331055#FFFFFF#000000##FFFFFF
##3310551.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#2C2232
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331055;
/* rgb */ color: rgb(51, 16, 85);
/* oklch */ color: oklch(27.3% 0.117 302.2);
Tailwind
colors: {
  custom: {
    50: '#6f5285',
    500: '#331055',
    950: '#000000',
  },
}
SCSS
$custom: #331055;
$custom-light: #6f5285;
$custom-dark: #000000;
JSON
{
  "hex": "#331055",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 85
  },
  "hsl": {
    "h": 270.435,
    "s": 68.317,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27303,
    "c": 0.1166,
    "h": 302.2
  },
  "luminance": 0.0173
}

Semantic roles & 50–950 ramp

primary
#331055
secondary
#608F32
accent
#EB3D93
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #331055

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

Preview Lab → · Contrast checker → · Palette generator →

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