#331877#331877

#331877 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.149 H 287.6°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#331877
RGBrgb(51, 24, 119)
HSLhsl(257, 66%, 28%)
HSVhsv(257, 80%, 47%)
CMYKcmyk(57.1%, 79.8%, 0%, 53.3%)
CIE-LABlab(18.75, 37.81, -49.24)
CIE-LCHlch(18.75, 62.09, 307.52°)
OKLaboklab(31.66% 0.0449 -0.1417)
OKLCHoklch(31.66% 0.149 287.6)
XYZxyz(5.0207, 2.6887, 17.7036)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331877 #5C7718
analogous
#182C77 #331877 #631877
triadic
#331877 #773318 #187733
tetradic
#331877 #77182C #5C7718 #187763
square
#331877 #77182C #5C7718 #187763
split-complementary
#331877 #776318 #2C7718
monochromatic
#0B0519 #1D0E44 #331877 #4922AA #6233D6

Accessibility & contrast

On white

13.66
#331877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#331877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331877
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331877#FFFFFF#000000##FFFFFF
##3318771.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.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: #331877;
/* rgb */ color: rgb(51, 24, 119);
/* oklch */ color: oklch(31.7% 0.149 287.6);
Tailwind
colors: {
  custom: {
    50: '#73589f',
    500: '#331877',
    950: '#000000',
  },
}
SCSS
$custom: #331877;
$custom-light: #73589f;
$custom-dark: #000000;
JSON
{
  "hex": "#331877",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 257.053,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31659,
    "c": 0.14863,
    "h": 287.6
  },
  "luminance": 0.02689
}

Semantic roles & 50–950 ramp

primary
#331877
secondary
#8DAC3F
accent
#E93EB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #331877

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

Preview Lab → · Contrast checker → · Palette generator →

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