#331276#331276

#331276 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.153 H 288.9°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#331276
RGBrgb(51, 18, 118)
HSLhsl(260, 74%, 27%)
HSVhsv(260, 85%, 46%)
CMYKcmyk(56.8%, 84.7%, 0%, 53.7%)
CIE-LABlab(17.66, 40.36, -50.39)
CIE-LCHlch(17.66, 64.56, 308.69°)
OKLaboklab(30.87% 0.0495 -0.145)
OKLCHoklch(30.87% 0.153 288.9)
XYZxyz(4.8506, 2.4442, 17.3522)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331276 #557612
analogous
#122376 #331276 #651276
triadic
#331276 #763312 #127633
tetradic
#331276 #761223 #557612 #127665
square
#331276 #761223 #557612 #127665
split-complementary
#331276 #766512 #237612
monochromatic
#0B041B #1C0A41 #331276 #4A1AAB #6225DE

Accessibility & contrast

On white

14.11
#331276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331276
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331276#FFFFFF#000000##FFFFFF
##3312761.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#173045
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331276;
/* rgb */ color: rgb(51, 18, 118);
/* oklch */ color: oklch(30.9% 0.153 288.9);
Tailwind
colors: {
  custom: {
    50: '#74559f',
    500: '#331276',
    950: '#000000',
  },
}
SCSS
$custom: #331276;
$custom-light: #74559f;
$custom-dark: #000000;
JSON
{
  "hex": "#331276",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 259.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30871,
    "c": 0.15321,
    "h": 288.9
  },
  "luminance": 0.02444
}

Semantic roles & 50–950 ramp

primary
#331276
secondary
#86AD37
accent
#F038B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #331276

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

Preview Lab → · Contrast checker → · Palette generator →

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