#331A64#331A64

#331A64 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.1% C 0.122 H 293.1°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#331A64
RGBrgb(51, 26, 100)
HSLhsl(260, 59%, 25%)
HSVhsv(260, 74%, 39%)
CMYKcmyk(49%, 74%, 0%, 60.8%)
CIE-LABlab(17.29, 30.94, -39.29)
CIE-LCHlch(17.29, 50.01, 308.22°)
OKLaboklab(30.06% 0.0479 -0.1125)
OKLCHoklch(30.06% 0.122 293.1)
XYZxyz(4.0343, 2.3626, 12.2976)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A64 #4B641A
analogous
#1A2664 #331A64 #581A64
triadic
#331A64 #64331A #1A6433
tetradic
#331A64 #641A26 #4B641A #1A6458
square
#331A64 #641A26 #4B641A #1A6458
split-complementary
#331A64 #64581A #26641A
monochromatic
#0C0618 #1A0D33 #331A64 #4C2795 #6533C5

Accessibility & contrast

On white

14.26
#331A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331A64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A64
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A64#FFFFFF#000000##FFFFFF
##331A641.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002963
Tritanopia (blue-blind)
#242D3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331a64;
/* rgb */ color: rgb(51, 26, 100);
/* oklch */ color: oklch(30.1% 0.122 293.1);
Tailwind
colors: {
  custom: {
    50: '#705991',
    500: '#331a64',
    950: '#000000',
  },
}
SCSS
$custom: #331a64;
$custom-light: #705991;
$custom-dark: #000000;
JSON
{
  "hex": "#331a64",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 100
  },
  "hsl": {
    "h": 260.27,
    "s": 58.73,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30056,
    "c": 0.1223,
    "h": 293.1
  },
  "luminance": 0.02363
}

Semantic roles & 50–950 ramp

primary
#331A64
secondary
#7B9A40
accent
#E246AD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331A64

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

Preview Lab → · Contrast checker → · Palette generator →

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