#331679#331679

#331679 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.153 H 287.4°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#331679
RGBrgb(51, 22, 121)
HSLhsl(258, 69%, 28%)
HSVhsv(258, 82%, 47%)
CMYKcmyk(57.9%, 81.8%, 0%, 52.5%)
CIE-LABlab(18.62, 39.40, -50.75)
CIE-LCHlch(18.62, 64.25, 307.83°)
OKLaboklab(31.63% 0.0457 -0.1461)
OKLCHoklch(31.63% 0.153 287.4)
XYZxyz(5.1023, 2.6578, 18.3296)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331679 #5C7916
analogous
#162A79 #331679 #641679
triadic
#331679 #793316 #167933
tetradic
#331679 #79162A #5C7916 #167964
square
#331679 #79162A #5C7916 #167964
split-complementary
#331679 #796416 #2A7916
monochromatic
#0B051A #1D0D45 #331679 #491FAD #6230D9

Accessibility & contrast

On white

13.71
#331679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#331679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331679
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331679#FFFFFF#000000##FFFFFF
##3316791.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#143347
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331679;
/* rgb */ color: rgb(51, 22, 121);
/* oklch */ color: oklch(31.6% 0.153 287.4);
Tailwind
colors: {
  custom: {
    50: '#7458a1',
    500: '#331679',
    950: '#000000',
  },
}
SCSS
$custom: #331679;
$custom-light: #7458a1;
$custom-dark: #000000;
JSON
{
  "hex": "#331679",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 257.576,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31629,
    "c": 0.15306,
    "h": 287.4
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#331679
secondary
#8DAE3D
accent
#EC3CB8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09030F
muted
#7B787F

Preview Lab

Preview with #331679

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

Preview Lab → · Contrast checker → · Palette generator →

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