#331C51#331C51

#331C51 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.094 H 300.6°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#331C51
RGBrgb(51, 28, 81)
HSLhsl(266, 49%, 21%)
HSVhsv(266, 65%, 32%)
CMYKcmyk(37%, 65.4%, 0%, 68.2%)
CIE-LABlab(16.15, 23.98, -28.42)
CIE-LCHlch(16.15, 37.18, 310.16°)
OKLaboklab(28.74% 0.0477 -0.0806)
OKLCHoklch(28.74% 0.094 300.6)
XYZxyz(3.2653, 2.1284, 8.0218)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C51 #3A511C
analogous
#1C2051 #331C51 #4E1C51
triadic
#331C51 #51331C #1C5133
tetradic
#331C51 #511C20 #3A511C #1C514E
square
#331C51 #511C20 #3A511C #1C514E
split-complementary
#331C51 #514E1C #20511C
monochromatic
#0E0817 #160C24 #331C51 #502C7E #6C3BAC

Accessibility & contrast

On white

14.73
#331C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#331C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C51
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C51#FFFFFF#000000##FFFFFF
##331C511.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012853
Deuteranopia (green-blind)
#0B2850
Tritanopia (blue-blind)
#2D2733
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331c51;
/* rgb */ color: rgb(51, 28, 81);
/* oklch */ color: oklch(28.7% 0.094 300.6);
Tailwind
colors: {
  custom: {
    50: '#6d5982',
    500: '#331c51',
    950: '#000000',
  },
}
SCSS
$custom: #331c51;
$custom-light: #6d5982;
$custom-dark: #000000;
JSON
{
  "hex": "#331c51",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 81
  },
  "hsl": {
    "h": 266.038,
    "s": 48.624,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28736,
    "c": 0.09364,
    "h": 300.6
  },
  "luminance": 0.02128
}

Semantic roles & 50–950 ramp

primary
#331C51
secondary
#698742
accent
#D8509D
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331C51

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

Preview Lab → · Contrast checker → · Palette generator →

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