#331776#331776

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

Color values

HEX#331776
RGBrgb(51, 23, 118)
HSLhsl(258, 67%, 28%)
HSVhsv(258, 81%, 46%)
CMYKcmyk(56.8%, 80.5%, 0%, 53.7%)
CIE-LABlab(18.47, 38.02, -49.06)
CIE-LCHlch(18.47, 62.07, 307.77°)
OKLaboklab(31.43% 0.046 -0.1412)
OKLCHoklch(31.43% 0.148 288)
XYZxyz(4.9407, 2.6244, 17.3822)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331776 #5A7617
analogous
#172B76 #331776 #621776
triadic
#331776 #763317 #177633
tetradic
#331776 #76172B #5A7617 #177662
square
#331776 #76172B #5A7617 #177662
split-complementary
#331776 #766217 #2B7617
monochromatic
#0B051A #1D0D43 #331776 #4921A9 #6231D7

Accessibility & contrast

On white

13.77
#331776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331776
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331776#FFFFFF#000000##FFFFFF
##3317761.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331776;
/* rgb */ color: rgb(51, 23, 118);
/* oklch */ color: oklch(31.4% 0.148 288.0);
Tailwind
colors: {
  custom: {
    50: '#73589e',
    500: '#331776',
    950: '#000000',
  },
}
SCSS
$custom: #331776;
$custom-light: #73589e;
$custom-dark: #000000;
JSON
{
  "hex": "#331776",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 257.684,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31432,
    "c": 0.14845,
    "h": 288
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#331776
secondary
#8BAB3E
accent
#EA3EB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #331776

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

Preview Lab → · Contrast checker → · Palette generator →

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