#331A6A#331A6A

#331A6A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.130 H 291.0°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#331A6A
RGBrgb(51, 26, 106)
HSLhsl(259, 61%, 26%)
HSVhsv(259, 75%, 42%)
CMYKcmyk(51.9%, 75.5%, 0%, 58.4%)
CIE-LABlab(17.84, 32.78, -42.32)
CIE-LCHlch(17.84, 53.53, 307.76°)
OKLaboklab(30.62% 0.0466 -0.1214)
OKLCHoklch(30.62% 0.13 291)
XYZxyz(4.3354, 2.4830, 13.8837)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A6A #516A1A
analogous
#1A296A #331A6A #5B1A6A
triadic
#331A6A #6A331A #1A6A33
tetradic
#331A6A #6A1A29 #516A1A #1A6A5B
square
#331A6A #6A1A29 #516A1A #1A6A5B
split-complementary
#331A6A #6A5B1A #296A1A
monochromatic
#0C0619 #1B0E39 #331A6A #4B269B #6232CC

Accessibility & contrast

On white

14.03
#331A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331A6A
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A6A#FFFFFF#000000##FFFFFF
##331A6A1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002A68
Tritanopia (blue-blind)
#212F40
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331a6a;
/* rgb */ color: rgb(51, 26, 106);
/* oklch */ color: oklch(30.6% 0.130 291.0);
Tailwind
colors: {
  custom: {
    50: '#715995',
    500: '#331a6a',
    950: '#000000',
  },
}
SCSS
$custom: #331a6a;
$custom-light: #715995;
$custom-dark: #000000;
JSON
{
  "hex": "#331a6a",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 258.75,
    "s": 60.606,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30624,
    "c": 0.13006,
    "h": 291
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#331A6A
secondary
#829F40
accent
#E444B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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