#331556#331556

#331556 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.111 H 300.4°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#331556
RGBrgb(51, 21, 86)
HSLhsl(268, 61%, 21%)
HSVhsv(268, 76%, 34%)
CMYKcmyk(40.7%, 75.6%, 0%, 66.3%)
CIE-LABlab(15.02, 29.62, -33.63)
CIE-LCHlch(15.02, 44.82, 311.38°)
OKLaboklab(28.05% 0.0563 -0.0959)
OKLCHoklch(28.05% 0.111 300.4)
XYZxyz(3.3127, 1.9120, 8.9968)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331556 #385615
analogous
#151756 #331556 #531556
triadic
#331556 #563315 #155633
tetradic
#331556 #561517 #385615 #155653
square
#331556 #561517 #385615 #155653
split-complementary
#331556 #565315 #175615
monochromatic
#0F0619 #160925 #331556 #502187 #6D2DB8

Accessibility & contrast

On white

15.19
#331556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331556 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331556
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331556#FFFFFF#000000##FFFFFF
##3315561.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#2B2533
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331556;
/* rgb */ color: rgb(51, 21, 86);
/* oklch */ color: oklch(28.1% 0.111 300.4);
Tailwind
colors: {
  custom: {
    50: '#6e5586',
    500: '#331556',
    950: '#000000',
  },
}
SCSS
$custom: #331556;
$custom-light: #6e5586;
$custom-dark: #000000;
JSON
{
  "hex": "#331556",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 267.692,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.28051,
    "c": 0.11118,
    "h": 300.4
  },
  "luminance": 0.01912
}

Semantic roles & 50–950 ramp

primary
#331556
secondary
#678E39
accent
#E4449A
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331556

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

Preview Lab → · Contrast checker → · Palette generator →

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