#331C5A#331C5A

#331C5A is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.106 H 296.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#331C5A
RGBrgb(51, 28, 90)
HSLhsl(262, 53%, 23%)
HSVhsv(262, 69%, 35%)
CMYKcmyk(43.3%, 68.9%, 0%, 64.7%)
CIE-LABlab(16.86, 26.69, -33.34)
CIE-LCHlch(16.86, 42.71, 308.68°)
OKLaboklab(29.48% 0.0471 -0.095)
OKLCHoklch(29.48% 0.106 296.4)
XYZxyz(3.6255, 2.2724, 9.9185)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C5A #435A1C
analogous
#1C245A #331C5A #521C5A
triadic
#331C5A #5A331C #1C5A33
tetradic
#331C5A #5A1C24 #435A1C #1C5A52
square
#331C5A #5A1C24 #435A1C #1C5A52
split-complementary
#331C5A #5A521C #245A1C
monochromatic
#0D0717 #190D2B #331C5A #4D2B89 #6839B7

Accessibility & contrast

On white

14.44
#331C5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C5A
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C5A#FFFFFF#000000##FFFFFF
##331C5A1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#002959
Tritanopia (blue-blind)
#292A38
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331c5a;
/* rgb */ color: rgb(51, 28, 90);
/* oklch */ color: oklch(29.5% 0.106 296.4);
Tailwind
colors: {
  custom: {
    50: '#6e5989',
    500: '#331c5a',
    950: '#000000',
  },
}
SCSS
$custom: #331c5a;
$custom-light: #6e5989;
$custom-dark: #000000;
JSON
{
  "hex": "#331c5a",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 90
  },
  "hsl": {
    "h": 262.258,
    "s": 52.542,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29477,
    "c": 0.10608,
    "h": 296.4
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #331C5A

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

Preview Lab → · Contrast checker → · Palette generator →

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