#331D69#331D69

#331D69 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.125 H 290.5°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#331D69
RGBrgb(51, 29, 105)
HSLhsl(257, 57%, 26%)
HSVhsv(257, 72%, 41%)
CMYKcmyk(51.4%, 72.4%, 0%, 58.8%)
CIE-LABlab(18.38, 30.73, -40.79)
CIE-LCHlch(18.38, 51.07, 306.99°)
OKLaboklab(30.98% 0.0437 -0.117)
OKLCHoklch(30.98% 0.125 290.5)
XYZxyz(4.3537, 2.6023, 13.6348)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D69 #53691D
analogous
#1D2D69 #331D69 #591D69
triadic
#331D69 #69331D #1D6933
tetradic
#331D69 #691D2D #53691D #1D6959
square
#331D69 #691D2D #53691D #1D6959
split-complementary
#331D69 #69591D #2D691D
monochromatic
#0C0718 #1C1039 #331D69 #4A2A99 #6238C8

Accessibility & contrast

On white

13.81
#331D69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#331D69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D69
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D69#FFFFFF#000000##FFFFFF
##331D691.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6B
Deuteranopia (green-blind)
#002B67
Tritanopia (blue-blind)
#213040
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331d69;
/* rgb */ color: rgb(51, 29, 105);
/* oklch */ color: oklch(31.0% 0.125 290.5);
Tailwind
colors: {
  custom: {
    50: '#715b95',
    500: '#331d69',
    950: '#000000',
  },
}
SCSS
$custom: #331d69;
$custom-light: #715b95;
$custom-dark: #000000;
JSON
{
  "hex": "#331d69",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 105
  },
  "hsl": {
    "h": 257.368,
    "s": 56.716,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30976,
    "c": 0.12487,
    "h": 290.5
  },
  "luminance": 0.02602
}

Semantic roles & 50–950 ramp

primary
#331D69
secondary
#849E44
accent
#E048B4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331D69

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

Preview Lab → · Contrast checker → · Palette generator →

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