#331C59#331C59

#331C59 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.105 H 296.8°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#331C59
RGBrgb(51, 28, 89)
HSLhsl(263, 52%, 23%)
HSVhsv(263, 69%, 35%)
CMYKcmyk(42.7%, 68.5%, 0%, 65.1%)
CIE-LABlab(16.77, 26.38, -32.80)
CIE-LCHlch(16.77, 42.10, 308.81°)
OKLaboklab(29.39% 0.0472 -0.0935)
OKLCHoklch(29.39% 0.105 296.8)
XYZxyz(3.5832, 2.2555, 9.6958)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C59 #42591C
analogous
#1C2359 #331C59 #511C59
triadic
#331C59 #59331C #1C5933
tetradic
#331C59 #591C23 #42591C #1C5951
square
#331C59 #591C23 #42591C #1C5951
split-complementary
#331C59 #59511C #23591C
monochromatic
#0D0717 #180D2A #331C59 #4E2B88 #6839B6

Accessibility & contrast

On white

14.47
#331C59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#331C59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C59
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C59#FFFFFF#000000##FFFFFF
##331C591.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5B
Deuteranopia (green-blind)
#002958
Tritanopia (blue-blind)
#2A2A37
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331c59;
/* rgb */ color: rgb(51, 28, 89);
/* oklch */ color: oklch(29.4% 0.105 296.8);
Tailwind
colors: {
  custom: {
    50: '#6e5988',
    500: '#331c59',
    950: '#000000',
  },
}
SCSS
$custom: #331c59;
$custom-light: #6e5988;
$custom-dark: #000000;
JSON
{
  "hex": "#331c59",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 89
  },
  "hsl": {
    "h": 262.623,
    "s": 52.137,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29392,
    "c": 0.10471,
    "h": 296.8
  },
  "luminance": 0.02256
}

Semantic roles & 50–950 ramp

primary
#331C59
secondary
#728F42
accent
#DC4CA6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #331C59

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

Preview Lab → · Contrast checker → · Palette generator →

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