#331876#331876

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

Color values

HEX#331876
RGBrgb(51, 24, 118)
HSLhsl(257, 66%, 28%)
HSVhsv(257, 80%, 46%)
CMYKcmyk(56.8%, 79.7%, 0%, 53.7%)
CIE-LABlab(18.65, 37.51, -48.77)
CIE-LCHlch(18.65, 61.53, 307.57°)
OKLaboklab(31.56% 0.0452 -0.1403)
OKLCHoklch(31.56% 0.147 287.8)
XYZxyz(4.9609, 2.6648, 17.3890)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331876 #5B7618
analogous
#182C76 #331876 #621876
triadic
#331876 #763318 #187633
tetradic
#331876 #76182C #5B7618 #187662
square
#331876 #76182C #5B7618 #187662
split-complementary
#331876 #766218 #2C7618
monochromatic
#0B0519 #1D0E43 #331876 #4922A9 #6233D5

Accessibility & contrast

On white

13.70
#331876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331876
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331876#FFFFFF#000000##FFFFFF
##3318761.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331876;
/* rgb */ color: rgb(51, 24, 118);
/* oklch */ color: oklch(31.6% 0.147 287.8);
Tailwind
colors: {
  custom: {
    50: '#73589e',
    500: '#331876',
    950: '#000000',
  },
}
SCSS
$custom: #331876;
$custom-light: #73589e;
$custom-dark: #000000;
JSON
{
  "hex": "#331876",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 257.234,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31555,
    "c": 0.14741,
    "h": 287.8
  },
  "luminance": 0.02665
}

Semantic roles & 50–950 ramp

primary
#331876
secondary
#8CAB3F
accent
#E93FB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331876

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

Preview Lab → · Contrast checker → · Palette generator →

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