#331A67#331A67

#331A67 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.126 H 292.0°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#331A67
RGBrgb(51, 26, 103)
HSLhsl(259, 60%, 25%)
HSVhsv(259, 75%, 40%)
CMYKcmyk(50.5%, 74.8%, 0%, 59.6%)
CIE-LABlab(17.56, 31.86, -40.81)
CIE-LCHlch(17.56, 51.77, 307.98°)
OKLaboklab(30.34% 0.0473 -0.117)
OKLCHoklch(30.34% 0.126 292)
XYZxyz(4.1821, 2.4217, 13.0764)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A67 #4E671A
analogous
#1A2767 #331A67 #5A1A67
triadic
#331A67 #67331A #1A6733
tetradic
#331A67 #671A27 #4E671A #1A675A
square
#331A67 #671A27 #4E671A #1A675A
split-complementary
#331A67 #675A1A #27671A
monochromatic
#0C0618 #1B0E36 #331A67 #4B2698 #6333C9

Accessibility & contrast

On white

14.15
#331A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#331A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A67
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A67#FFFFFF#000000##FFFFFF
##331A671.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#232E3E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331a67;
/* rgb */ color: rgb(51, 26, 103);
/* oklch */ color: oklch(30.3% 0.126 292.0);
Tailwind
colors: {
  custom: {
    50: '#705993',
    500: '#331a67',
    950: '#000000',
  },
}
SCSS
$custom: #331a67;
$custom-light: #705993;
$custom-dark: #000000;
JSON
{
  "hex": "#331a67",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 103
  },
  "hsl": {
    "h": 259.481,
    "s": 59.69,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30338,
    "c": 0.1262,
    "h": 292
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

primary
#331A67
secondary
#7F9D40
accent
#E345B0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331A67

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

Preview Lab → · Contrast checker → · Palette generator →

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