#331D61#331D61

#331D61 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.3% C 0.114 H 293.2°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#331D61
RGBrgb(51, 29, 97)
HSLhsl(259, 54%, 25%)
HSVhsv(259, 70%, 38%)
CMYKcmyk(47.4%, 70.1%, 0%, 62%)
CIE-LABlab(17.67, 28.23, -36.68)
CIE-LCHlch(17.67, 46.28, 307.58°)
OKLaboklab(30.25% 0.045 -0.1049)
OKLCHoklch(30.25% 0.114 293.2)
XYZxyz(3.9617, 2.4455, 11.5702)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D61 #4B611D
analogous
#1D2961 #331D61 #551D61
triadic
#331D61 #61331D #1D6133
tetradic
#331D61 #611D29 #4B611D #1D6155
square
#331D61 #611D29 #4B611D #1D6155
split-complementary
#331D61 #61551D #29611D
monochromatic
#0C0718 #1A0F32 #331D61 #4C2B90 #6539BF

Accessibility & contrast

On white

14.10
#331D61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331D61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331D61
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D61#FFFFFF#000000##FFFFFF
##331D611.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C63
Deuteranopia (green-blind)
#002A60
Tritanopia (blue-blind)
#262D3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331d61;
/* rgb */ color: rgb(51, 29, 97);
/* oklch */ color: oklch(30.3% 0.114 293.2);
Tailwind
colors: {
  custom: {
    50: '#6f5a8e',
    500: '#331d61',
    950: '#000000',
  },
}
SCSS
$custom: #331d61;
$custom-light: #6f5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#331d61",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 97
  },
  "hsl": {
    "h": 259.412,
    "s": 53.968,
    "l": 24.706
  },
  "oklch": {
    "l": 0.3025,
    "c": 0.11413,
    "h": 293.2
  },
  "luminance": 0.02446
}

Semantic roles & 50–950 ramp

primary
#331D61
secondary
#7B9644
accent
#DD4AAE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331D61

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

Preview Lab → · Contrast checker → · Palette generator →

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