#331261#331261

#331261 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.128 H 296.2°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#331261
RGBrgb(51, 18, 97)
HSLhsl(265, 69%, 23%)
HSVhsv(265, 81%, 38%)
CMYKcmyk(47.4%, 81.4%, 0%, 62%)
CIE-LABlab(15.48, 34.34, -40.24)
CIE-LCHlch(15.48, 52.90, 310.47°)
OKLaboklab(28.7% 0.0567 -0.1153)
OKLCHoklch(28.7% 0.128 296.2)
XYZxyz(3.7386, 1.9994, 11.4959)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331261 #406112
analogous
#121961 #331261 #5A1261
triadic
#331261 #613312 #126133
tetradic
#331261 #611219 #406112 #12615A
square
#331261 #611219 #406112 #12615A
split-complementary
#331261 #615A12 #196112
monochromatic
#0E051A #18082D #331261 #4E1C95 #6925C8

Accessibility & contrast

On white

15.00
#331261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331261
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331261#FFFFFF#000000##FFFFFF
##3312611.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#262739
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331261;
/* rgb */ color: rgb(51, 18, 97);
/* oklch */ color: oklch(28.7% 0.128 296.2);
Tailwind
colors: {
  custom: {
    50: '#70548f',
    500: '#331261',
    950: '#000000',
  },
}
SCSS
$custom: #331261;
$custom-light: #70548f;
$custom-dark: #000000;
JSON
{
  "hex": "#331261",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 265.063,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28696,
    "c": 0.12847,
    "h": 296.2
  },
  "luminance": 0.01999
}

Semantic roles & 50–950 ramp

primary
#331261
secondary
#709936
accent
#EC3CA2
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331261

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

Preview Lab → · Contrast checker → · Palette generator →

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