#331677#331677

#331677 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.151 H 287.9°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#331677
RGBrgb(51, 22, 119)
HSLhsl(258, 69%, 28%)
HSVhsv(258, 82%, 47%)
CMYKcmyk(57.1%, 81.5%, 0%, 53.3%)
CIE-LABlab(18.41, 38.81, -49.81)
CIE-LCHlch(18.41, 63.14, 307.92°)
OKLaboklab(31.42% 0.0464 -0.1433)
OKLCHoklch(31.42% 0.151 287.9)
XYZxyz(4.9809, 2.6093, 17.6904)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331677 #5A7716
analogous
#162A77 #331677 #631677
triadic
#331677 #773316 #167733
tetradic
#331677 #77162A #5A7716 #167763
square
#331677 #77162A #5A7716 #167763
split-complementary
#331677 #776316 #2A7716
monochromatic
#0B051A #1D0C43 #331677 #4920AB #622FD9

Accessibility & contrast

On white

13.80
#331677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331677
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331677#FFFFFF#000000##FFFFFF
##3316771.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#163246
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331677;
/* rgb */ color: rgb(51, 22, 119);
/* oklch */ color: oklch(31.4% 0.151 287.9);
Tailwind
colors: {
  custom: {
    50: '#74579f',
    500: '#331677',
    950: '#000000',
  },
}
SCSS
$custom: #331677;
$custom-light: #74579f;
$custom-dark: #000000;
JSON
{
  "hex": "#331677",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 257.938,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31417,
    "c": 0.15066,
    "h": 287.9
  },
  "luminance": 0.0261
}

Semantic roles & 50–950 ramp

primary
#331677
secondary
#8BAC3C
accent
#EC3CB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #331677

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

Preview Lab → · Contrast checker → · Palette generator →

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