#331155#331155

#331155 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.115 H 301.9°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#331155
RGBrgb(51, 17, 85)
HSLhsl(270, 67%, 20%)
HSVhsv(270, 80%, 33%)
CMYKcmyk(40%, 80%, 0%, 66.7%)
CIE-LABlab(14.18, 31.46, -34.32)
CIE-LCHlch(14.18, 46.56, 312.51°)
OKLaboklab(27.43% 0.061 -0.0979)
OKLCHoklch(27.43% 0.115 301.9)
XYZxyz(3.2050, 1.7606, 8.7635)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331155 #335511
analogous
#111155 #331155 #551155
triadic
#331155 #553311 #115533
tetradic
#331155 #551111 #335511 #115555
square
#331155 #551111 #335511 #115555
split-complementary
#331155 #555511 #115511
monochromatic
#0F051A #140722 #331155 #521B88 #7025BB

Accessibility & contrast

On white

15.53
#331155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331155
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331155#FFFFFF#000000##FFFFFF
##3311551.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331155;
/* rgb */ color: rgb(51, 17, 85);
/* oklch */ color: oklch(27.4% 0.115 301.9);
Tailwind
colors: {
  custom: {
    50: '#6f5385',
    500: '#331155',
    950: '#000000',
  },
}
SCSS
$custom: #331155;
$custom-light: #6f5385;
$custom-dark: #000000;
JSON
{
  "hex": "#331155",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 270,
    "s": 66.667,
    "l": 20
  },
  "oklch": {
    "l": 0.27426,
    "c": 0.11533,
    "h": 301.9
  },
  "luminance": 0.01761
}

Semantic roles & 50–950 ramp

primary
#331155
secondary
#618E34
accent
#EA3E94
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #331155

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

Preview Lab → · Contrast checker → · Palette generator →

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