#331656#331656

#331656 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.110 H 300.1°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#331656
RGBrgb(51, 22, 86)
HSLhsl(267, 59%, 21%)
HSVhsv(267, 74%, 34%)
CMYKcmyk(40.7%, 74.4%, 0%, 66.3%)
CIE-LABlab(15.22, 29.06, -33.30)
CIE-LCHlch(15.22, 44.20, 311.11°)
OKLaboklab(28.19% 0.0551 -0.0949)
OKLCHoklch(28.19% 0.11 300.1)
XYZxyz(3.3315, 1.9495, 9.0031)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331656 #395616
analogous
#161956 #331656 #531656
triadic
#331656 #563316 #165633
tetradic
#331656 #561619 #395616 #165653
square
#331656 #561619 #395616 #165653
split-complementary
#331656 #565316 #195616
monochromatic
#0E0618 #160A25 #331656 #502287 #6D2FB7

Accessibility & contrast

On white

15.11
#331656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331656
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331656#FFFFFF#000000##FFFFFF
##3316561.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331656;
/* rgb */ color: rgb(51, 22, 86);
/* oklch */ color: oklch(28.2% 0.110 300.1);
Tailwind
colors: {
  custom: {
    50: '#6e5686',
    500: '#331656',
    950: '#000000',
  },
}
SCSS
$custom: #331656;
$custom-light: #6e5686;
$custom-dark: #000000;
JSON
{
  "hex": "#331656",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 86
  },
  "hsl": {
    "h": 267.188,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28194,
    "c": 0.10975,
    "h": 300.1
  },
  "luminance": 0.0195
}

Semantic roles & 50–950 ramp

primary
#331656
secondary
#688D3A
accent
#E2459B
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331656

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

Preview Lab → · Contrast checker → · Palette generator →

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