#331C6D#331C6D

#331C6D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.131 H 289.5°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#331C6D
RGBrgb(51, 28, 109)
HSLhsl(257, 59%, 27%)
HSVhsv(257, 74%, 43%)
CMYKcmyk(53.2%, 74.3%, 0%, 57.3%)
CIE-LABlab(18.53, 32.57, -43.14)
CIE-LCHlch(18.53, 54.06, 307.05°)
OKLaboklab(31.2% 0.044 -0.1238)
OKLCHoklch(31.2% 0.131 289.5)
XYZxyz(4.5400, 2.6382, 14.7350)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C6D #566D1C
analogous
#1C2E6D #331C6D #5C1C6D
triadic
#331C6D #6D331C #1C6D33
tetradic
#331C6D #6D1C2E #566D1C #1C6D5C
square
#331C6D #6D1C2E #566D1C #1C6D5C
split-complementary
#331C6D #6D5C1C #2E6D1C
monochromatic
#0B0618 #1C0F3C #331C6D #4A299E #6238CC

Accessibility & contrast

On white

13.75
#331C6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#331C6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C6D
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C6D#FFFFFF#000000##FFFFFF
##331C6D1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#002B6B
Tritanopia (blue-blind)
#1E3142
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331c6d;
/* rgb */ color: rgb(51, 28, 109);
/* oklch */ color: oklch(31.2% 0.131 289.5);
Tailwind
colors: {
  custom: {
    50: '#715a98',
    500: '#331c6d',
    950: '#000000',
  },
}
SCSS
$custom: #331c6d;
$custom-light: #715a98;
$custom-dark: #000000;
JSON
{
  "hex": "#331c6d",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 109
  },
  "hsl": {
    "h": 257.037,
    "s": 59.124,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31203,
    "c": 0.13142,
    "h": 289.5
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#331C6D
secondary
#87A243
accent
#E245B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331C6D

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

Preview Lab → · Contrast checker → · Palette generator →

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