#331A6B#331A6B

#331A6B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.131 H 290.7°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#331A6B
RGBrgb(51, 26, 107)
HSLhsl(259, 61%, 26%)
HSVhsv(259, 76%, 42%)
CMYKcmyk(52.3%, 75.7%, 0%, 58%)
CIE-LABlab(17.94, 33.09, -42.81)
CIE-LCHlch(17.94, 54.11, 307.70°)
OKLaboklab(30.72% 0.0464 -0.1229)
OKLCHoklch(30.72% 0.131 290.7)
XYZxyz(4.3877, 2.5040, 14.1592)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A6B #526B1A
analogous
#1A296B #331A6B #5B1A6B
triadic
#331A6B #6B331A #1A6B33
tetradic
#331A6B #6B1A29 #526B1A #1A6B5B
square
#331A6B #6B1A29 #526B1A #1A6B5B
split-complementary
#331A6B #6B5B1A #296B1A
monochromatic
#0C0619 #1C0E3A #331A6B #4A269C #6232CD

Accessibility & contrast

On white

13.99
#331A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331A6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A6B
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A6B#FFFFFF#000000##FFFFFF
##331A6B1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#202F40
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331a6b;
/* rgb */ color: rgb(51, 26, 107);
/* oklch */ color: oklch(30.7% 0.131 290.7);
Tailwind
colors: {
  custom: {
    50: '#715996',
    500: '#331a6b',
    950: '#000000',
  },
}
SCSS
$custom: #331a6b;
$custom-light: #715996;
$custom-dark: #000000;
JSON
{
  "hex": "#331a6b",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 107
  },
  "hsl": {
    "h": 258.519,
    "s": 60.902,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30721,
    "c": 0.13134,
    "h": 290.7
  },
  "luminance": 0.02504
}

Semantic roles & 50–950 ramp

primary
#331A6B
secondary
#83A040
accent
#E444B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331A6B

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

Preview Lab → · Contrast checker → · Palette generator →

#331A6B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva