#331C53#331C53

#331C53 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 28.9% C 0.096 H 299.6°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#331C53
RGBrgb(51, 28, 83)
HSLhsl(265, 50%, 22%)
HSVhsv(265, 66%, 33%)
CMYKcmyk(38.6%, 66.3%, 0%, 67.5%)
CIE-LABlab(16.30, 24.57, -29.53)
CIE-LCHlch(16.30, 38.42, 309.77°)
OKLaboklab(28.9% 0.0476 -0.0838)
OKLCHoklch(28.9% 0.096 299.6)
XYZxyz(3.3414, 2.1588, 8.4226)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C53 #3C531C
analogous
#1C2153 #331C53 #4F1C53
triadic
#331C53 #53331C #1C5333
tetradic
#331C53 #531C21 #3C531C #1C534F
square
#331C53 #531C21 #3C531C #1C534F
split-complementary
#331C53 #534F1C #21531C
monochromatic
#0E0817 #170D25 #331C53 #4F2B81 #6B3BAF

Accessibility & contrast

On white

14.67
#331C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C53
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C53#FFFFFF#000000##FFFFFF
##331C531.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002855
Deuteranopia (green-blind)
#082852
Tritanopia (blue-blind)
#2C2834
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331c53;
/* rgb */ color: rgb(51, 28, 83);
/* oklch */ color: oklch(28.9% 0.096 299.6);
Tailwind
colors: {
  custom: {
    50: '#6d5984',
    500: '#331c53',
    950: '#000000',
  },
}
SCSS
$custom: #331c53;
$custom-light: #6d5984;
$custom-dark: #000000;
JSON
{
  "hex": "#331c53",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 83
  },
  "hsl": {
    "h": 265.091,
    "s": 49.55,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28896,
    "c": 0.09642,
    "h": 299.6
  },
  "luminance": 0.02159
}

Semantic roles & 50–950 ramp

primary
#331C53
secondary
#6B8942
accent
#D94F9F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331C53

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

Preview Lab → · Contrast checker → · Palette generator →

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