#331C54#331C54

#331C54 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.0% C 0.098 H 299.1°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#331C54
RGBrgb(51, 28, 84)
HSLhsl(265, 50%, 22%)
HSVhsv(265, 67%, 33%)
CMYKcmyk(39.3%, 66.7%, 0%, 67.1%)
CIE-LABlab(16.38, 24.87, -30.08)
CIE-LCHlch(16.38, 39.03, 309.59°)
OKLaboklab(28.98% 0.0476 -0.0855)
OKLCHoklch(28.98% 0.098 299.1)
XYZxyz(3.3803, 2.1744, 8.6274)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C54 #3D541C
analogous
#1C2154 #331C54 #4F1C54
triadic
#331C54 #54331C #1C5433
tetradic
#331C54 #541C21 #3D541C #1C544F
square
#331C54 #541C21 #3D541C #1C544F
split-complementary
#331C54 #544F1C #21541C
monochromatic
#0E0817 #170D26 #331C54 #4F2B82 #6B3BB0

Accessibility & contrast

On white

14.64
#331C54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C54
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C54#FFFFFF#000000##FFFFFF
##331C541.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#062853
Tritanopia (blue-blind)
#2C2835
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331c54;
/* rgb */ color: rgb(51, 28, 84);
/* oklch */ color: oklch(29.0% 0.098 299.1);
Tailwind
colors: {
  custom: {
    50: '#6e5984',
    500: '#331c54',
    950: '#000000',
  },
}
SCSS
$custom: #331c54;
$custom-light: #6e5984;
$custom-dark: #000000;
JSON
{
  "hex": "#331c54",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 84
  },
  "hsl": {
    "h": 264.643,
    "s": 50,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28977,
    "c": 0.09781,
    "h": 299.1
  },
  "luminance": 0.02174
}

Semantic roles & 50–950 ramp

primary
#331C54
secondary
#6C8A42
accent
#DA4EA0
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331C54

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

Preview Lab → · Contrast checker → · Palette generator →

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