#331676#331676

#331676 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.149 H 288.2°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#331676
RGBrgb(51, 22, 118)
HSLhsl(258, 69%, 27%)
HSVhsv(258, 81%, 46%)
CMYKcmyk(56.8%, 81.4%, 0%, 53.7%)
CIE-LABlab(18.30, 38.51, -49.34)
CIE-LCHlch(18.30, 62.59, 307.97°)
OKLaboklab(31.31% 0.0467 -0.142)
OKLCHoklch(31.31% 0.149 288.2)
XYZxyz(4.9212, 2.5854, 17.3757)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331676 #597616
analogous
#162976 #331676 #631676
triadic
#331676 #763316 #167633
tetradic
#331676 #761629 #597616 #167663
square
#331676 #761629 #597616 #167663
split-complementary
#331676 #766316 #297616
monochromatic
#0B051A #1D0C42 #331676 #4920AA #622ED8

Accessibility & contrast

On white

13.84
#331676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#331676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331676
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331676#FFFFFF#000000##FFFFFF
##3316761.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#173246
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331676;
/* rgb */ color: rgb(51, 22, 118);
/* oklch */ color: oklch(31.3% 0.149 288.2);
Tailwind
colors: {
  custom: {
    50: '#73579e',
    500: '#331676',
    950: '#000000',
  },
}
SCSS
$custom: #331676;
$custom-light: #73579e;
$custom-dark: #000000;
JSON
{
  "hex": "#331676",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 258.125,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31312,
    "c": 0.14946,
    "h": 288.2
  },
  "luminance": 0.02586
}

Semantic roles & 50–950 ramp

primary
#331676
secondary
#8AAC3C
accent
#EB3CB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331676

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

Preview Lab → · Contrast checker → · Palette generator →

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