#331260#331260

#331260 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.127 H 296.6°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#331260
RGBrgb(51, 18, 96)
HSLhsl(265, 68%, 22%)
HSVhsv(265, 81%, 38%)
CMYKcmyk(46.9%, 81.3%, 0%, 62.4%)
CIE-LABlab(15.39, 34.05, -39.74)
CIE-LCHlch(15.39, 52.33, 310.59°)
OKLaboklab(28.6% 0.057 -0.1138)
OKLCHoklch(28.6% 0.127 296.6)
XYZxyz(3.6923, 1.9809, 11.2519)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331260 #3F6012
analogous
#121860 #331260 #5A1260
triadic
#331260 #603312 #126033
tetradic
#331260 #601218 #3F6012 #12605A
square
#331260 #601218 #3F6012 #12605A
split-complementary
#331260 #605A12 #186012
monochromatic
#0E051A #18082C #331260 #4E1C94 #6A25C7

Accessibility & contrast

On white

15.04
#331260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331260
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331260#FFFFFF#000000##FFFFFF
##3312601.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#272738
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331260;
/* rgb */ color: rgb(51, 18, 96);
/* oklch */ color: oklch(28.6% 0.127 296.6);
Tailwind
colors: {
  custom: {
    50: '#70548e',
    500: '#331260',
    950: '#000000',
  },
}
SCSS
$custom: #331260;
$custom-light: #70548e;
$custom-dark: #000000;
JSON
{
  "hex": "#331260",
  "rgb": {
    "r": 51,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 265.385,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28597,
    "c": 0.12728,
    "h": 296.6
  },
  "luminance": 0.01981
}

Semantic roles & 50–950 ramp

primary
#331260
secondary
#6E9836
accent
#EB3DA1
background
#F7F5F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331260

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

Preview Lab → · Contrast checker → · Palette generator →

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