#331D67#331D67

#331D67 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.8% C 0.122 H 291.1°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#331D67
RGBrgb(51, 29, 103)
HSLhsl(258, 56%, 26%)
HSVhsv(258, 72%, 40%)
CMYKcmyk(50.5%, 71.8%, 0%, 59.6%)
CIE-LABlab(18.20, 30.10, -39.78)
CIE-LCHlch(18.20, 49.88, 307.12°)
OKLaboklab(30.79% 0.0441 -0.114)
OKLCHoklch(30.79% 0.122 291.1)
XYZxyz(4.2521, 2.5617, 13.0997)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D67 #51671D
analogous
#1D2C67 #331D67 #581D67
triadic
#331D67 #67331D #1D6733
tetradic
#331D67 #671D2C #51671D #1D6758
square
#331D67 #671D2C #51671D #1D6758
split-complementary
#331D67 #67581D #2C671D
monochromatic
#0C0718 #1B1037 #331D67 #4B2A97 #6238C7

Accessibility & contrast

On white

13.89
#331D67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#331D67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D67
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D67#FFFFFF#000000##FFFFFF
##331D671.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E69
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#222F3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331d67;
/* rgb */ color: rgb(51, 29, 103);
/* oklch */ color: oklch(30.8% 0.122 291.1);
Tailwind
colors: {
  custom: {
    50: '#705b93',
    500: '#331d67',
    950: '#000000',
  },
}
SCSS
$custom: #331d67;
$custom-light: #705b93;
$custom-dark: #000000;
JSON
{
  "hex": "#331d67",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 103
  },
  "hsl": {
    "h": 257.838,
    "s": 56.061,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30791,
    "c": 0.1222,
    "h": 291.1
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#331D67
secondary
#829C44
accent
#DF48B2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331D67

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

Preview Lab → · Contrast checker → · Palette generator →

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