#331D60#331D60

#331D60 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.113 H 293.6°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#331D60
RGBrgb(51, 29, 96)
HSLhsl(260, 54%, 25%)
HSVhsv(260, 70%, 38%)
CMYKcmyk(46.9%, 69.8%, 0%, 62.4%)
CIE-LABlab(17.59, 27.92, -36.15)
CIE-LCHlch(17.59, 45.68, 307.68°)
OKLaboklab(30.16% 0.0452 -0.1033)
OKLCHoklch(30.16% 0.113 293.6)
XYZxyz(3.9154, 2.4270, 11.3262)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331D60 #4A601D
analogous
#1D2960 #331D60 #551D60
triadic
#331D60 #60331D #1D6033
tetradic
#331D60 #601D29 #4A601D #1D6055
square
#331D60 #601D29 #4A601D #1D6055
split-complementary
#331D60 #60551D #29601D
monochromatic
#0C0718 #1A0F31 #331D60 #4C2B8F #6539BE

Accessibility & contrast

On white

14.14
#331D60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331D60
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331D60#FFFFFF#000000##FFFFFF
##331D601.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C62
Deuteranopia (green-blind)
#002A5F
Tritanopia (blue-blind)
#262D3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331d60;
/* rgb */ color: rgb(51, 29, 96);
/* oklch */ color: oklch(30.2% 0.113 293.6);
Tailwind
colors: {
  custom: {
    50: '#6f5a8e',
    500: '#331d60',
    950: '#000000',
  },
}
SCSS
$custom: #331d60;
$custom-light: #6f5a8e;
$custom-dark: #000000;
JSON
{
  "hex": "#331d60",
  "rgb": {
    "r": 51,
    "g": 29,
    "b": 96
  },
  "hsl": {
    "h": 259.701,
    "s": 53.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30161,
    "c": 0.11276,
    "h": 293.6
  },
  "luminance": 0.02427
}

Semantic roles & 50–950 ramp

primary
#331D60
secondary
#7A9544
accent
#DD4BAD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #331D60

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

Preview Lab → · Contrast checker → · Palette generator →

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