#331A59#331A59

#331A59 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.108 H 297.5°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#331A59
RGBrgb(51, 26, 89)
HSLhsl(264, 55%, 23%)
HSVhsv(264, 71%, 35%)
CMYKcmyk(42.7%, 70.8%, 0%, 65.1%)
CIE-LABlab(16.32, 27.61, -33.53)
CIE-LCHlch(16.32, 43.43, 309.46°)
OKLaboklab(29.07% 0.0497 -0.0956)
OKLCHoklch(29.07% 0.108 297.5)
XYZxyz(3.5373, 2.1638, 9.6805)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A59 #40591A
analogous
#1A2059 #331A59 #531A59
triadic
#331A59 #59331A #1A5933
tetradic
#331A59 #591A20 #40591A #1A5953
square
#331A59 #591A20 #40591A #1A5953
split-complementary
#331A59 #59531A #20591A
monochromatic
#0E0718 #180C2A #331A59 #4E2888 #6936B8

Accessibility & contrast

On white

14.66
#331A59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331A59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A59
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A59#FFFFFF#000000##FFFFFF
##331A591.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#2A2937
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331a59;
/* rgb */ color: rgb(51, 26, 89);
/* oklch */ color: oklch(29.1% 0.108 297.5);
Tailwind
colors: {
  custom: {
    50: '#6e5888',
    500: '#331a59',
    950: '#000000',
  },
}
SCSS
$custom: #331a59;
$custom-light: #6e5888;
$custom-dark: #000000;
JSON
{
  "hex": "#331a59",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 89
  },
  "hsl": {
    "h": 263.81,
    "s": 54.783,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29067,
    "c": 0.10777,
    "h": 297.5
  },
  "luminance": 0.02164
}

Semantic roles & 50–950 ramp

primary
#331A59
secondary
#708F40
accent
#DE4AA3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331A59

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

Preview Lab → · Contrast checker → · Palette generator →

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