#331977#331977

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

Color values

HEX#331977
RGBrgb(51, 25, 119)
HSLhsl(257, 65%, 28%)
HSVhsv(257, 79%, 47%)
CMYKcmyk(57.1%, 79%, 0%, 53.3%)
CIE-LABlab(18.93, 37.30, -48.95)
CIE-LCHlch(18.93, 61.54, 307.31°)
OKLaboklab(31.79% 0.0441 -0.1408)
OKLCHoklch(31.79% 0.148 287.4)
XYZxyz(5.0417, 2.7307, 17.7106)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331977 #5D7719
analogous
#192E77 #331977 #621977
triadic
#331977 #773319 #197733
tetradic
#331977 #77192E #5D7719 #197762
square
#331977 #77192E #5D7719 #197762
split-complementary
#331977 #776219 #2E7719
monochromatic
#0B0519 #1D0E44 #331977 #4924AA #6236D5

Accessibility & contrast

On white

13.58
#331977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#331977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331977
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331977#FFFFFF#000000##FFFFFF
##3319771.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#163347
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #331977;
/* rgb */ color: rgb(51, 25, 119);
/* oklch */ color: oklch(31.8% 0.148 287.4);
Tailwind
colors: {
  custom: {
    50: '#73599f',
    500: '#331977',
    950: '#000000',
  },
}
SCSS
$custom: #331977;
$custom-light: #73599f;
$custom-dark: #000000;
JSON
{
  "hex": "#331977",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 256.596,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31785,
    "c": 0.14759,
    "h": 287.4
  },
  "luminance": 0.02731
}

Semantic roles & 50–950 ramp

primary
#331977
secondary
#8EAC40
accent
#E840BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #331977

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

Preview Lab → · Contrast checker → · Palette generator →

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