#331476#331476

#331476 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.151 H 288.5°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#331476
RGBrgb(51, 20, 118)
HSLhsl(259, 71%, 27%)
HSVhsv(259, 83%, 46%)
CMYKcmyk(56.8%, 83.1%, 0%, 53.7%)
CIE-LABlab(17.97, 39.46, -49.88)
CIE-LCHlch(17.97, 63.60, 308.35°)
OKLaboklab(31.08% 0.0482 -0.1435)
OKLCHoklch(31.08% 0.151 288.5)
XYZxyz(4.8844, 2.5119, 17.3635)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331476 #577614
analogous
#142676 #331476 #641476
triadic
#331476 #763314 #147633
tetradic
#331476 #761426 #577614 #147664
square
#331476 #761426 #577614 #147664
split-complementary
#331476 #766414 #267614
monochromatic
#0B041A #1C0B42 #331476 #4A1DAA #622ADB

Accessibility & contrast

On white

13.98
#331476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331476
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331476#FFFFFF#000000##FFFFFF
##3314761.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#173145
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331476;
/* rgb */ color: rgb(51, 20, 118);
/* oklch */ color: oklch(31.1% 0.151 288.5);
Tailwind
colors: {
  custom: {
    50: '#74569f',
    500: '#331476',
    950: '#000000',
  },
}
SCSS
$custom: #331476;
$custom-light: #74569f;
$custom-dark: #000000;
JSON
{
  "hex": "#331476",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 258.98,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31084,
    "c": 0.15139,
    "h": 288.5
  },
  "luminance": 0.02512
}

Semantic roles & 50–950 ramp

primary
#331476
secondary
#88AC3A
accent
#EE3AB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #331476

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

Preview Lab → · Contrast checker → · Palette generator →

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