#331557#331557

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

Color values

HEX#331557
RGBrgb(51, 21, 87)
HSLhsl(267, 61%, 21%)
HSVhsv(267, 76%, 34%)
CMYKcmyk(41.4%, 75.9%, 0%, 65.9%)
CIE-LABlab(15.11, 29.91, -34.16)
CIE-LCHlch(15.11, 45.41, 311.20°)
OKLaboklab(28.14% 0.0561 -0.0974)
OKLCHoklch(28.14% 0.112 299.9)
XYZxyz(3.3533, 1.9282, 9.2105)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331557 #395715
analogous
#151857 #331557 #541557
triadic
#331557 #573315 #155733
tetradic
#331557 #571518 #395715 #155754
square
#331557 #571518 #395715 #155754
split-complementary
#331557 #575415 #185715
monochromatic
#0E0619 #160926 #331557 #502188 #6D2DBA

Accessibility & contrast

On white

15.16
#331557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331557
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331557#FFFFFF#000000##FFFFFF
##3315571.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#2B2534
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331557;
/* rgb */ color: rgb(51, 21, 87);
/* oklch */ color: oklch(28.1% 0.112 299.9);
Tailwind
colors: {
  custom: {
    50: '#6f5587',
    500: '#331557',
    950: '#000000',
  },
}
SCSS
$custom: #331557;
$custom-light: #6f5587;
$custom-dark: #000000;
JSON
{
  "hex": "#331557",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 267.273,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2814,
    "c": 0.11244,
    "h": 299.9
  },
  "luminance": 0.01928
}

Semantic roles & 50–950 ramp

primary
#331557
secondary
#688F39
accent
#E4449B
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331557

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

Preview Lab → · Contrast checker → · Palette generator →

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