#331A61#331A61

#331A61 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.8% C 0.118 H 294.2°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#331A61
RGBrgb(51, 26, 97)
HSLhsl(261, 58%, 24%)
HSVhsv(261, 73%, 38%)
CMYKcmyk(47.4%, 73.2%, 0%, 62%)
CIE-LABlab(17.02, 30.03, -37.74)
CIE-LCHlch(17.02, 48.23, 308.50°)
OKLaboklab(29.78% 0.0485 -0.108)
OKLCHoklch(29.78% 0.118 294.2)
XYZxyz(3.8917, 2.3056, 11.5469)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A61 #48611A
analogous
#1A2561 #331A61 #571A61
triadic
#331A61 #61331A #1A6133
tetradic
#331A61 #611A25 #48611A #1A6157
square
#331A61 #611A25 #48611A #1A6157
split-complementary
#331A61 #61571A #25611A
monochromatic
#0D0618 #1A0D31 #331A61 #4C2791 #6634C2

Accessibility & contrast

On white

14.37
#331A61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#331A61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A61
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A61#FFFFFF#000000##FFFFFF
##331A611.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#002960
Tritanopia (blue-blind)
#262B3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331a61;
/* rgb */ color: rgb(51, 26, 97);
/* oklch */ color: oklch(29.8% 0.118 294.2);
Tailwind
colors: {
  custom: {
    50: '#70588f',
    500: '#331a61',
    950: '#000000',
  },
}
SCSS
$custom: #331a61;
$custom-light: #70588f;
$custom-dark: #000000;
JSON
{
  "hex": "#331a61",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 97
  },
  "hsl": {
    "h": 261.127,
    "s": 57.724,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29779,
    "c": 0.11838,
    "h": 294.2
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#331A61
secondary
#789740
accent
#E147AB
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331A61

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

Preview Lab → · Contrast checker → · Palette generator →

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