#331C65#331C65

#331C65 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.5% C 0.121 H 292.1°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#331C65
RGBrgb(51, 28, 101)
HSLhsl(259, 57%, 25%)
HSVhsv(259, 72%, 40%)
CMYKcmyk(49.5%, 72.3%, 0%, 60.4%)
CIE-LABlab(17.80, 30.08, -39.11)
CIE-LCHlch(17.80, 49.34, 307.56°)
OKLaboklab(30.45% 0.0455 -0.112)
OKLCHoklch(30.45% 0.121 292.1)
XYZxyz(4.1288, 2.4738, 12.5693)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C65 #4E651C
analogous
#1C2A65 #331C65 #571C65
triadic
#331C65 #65331C #1C6533
tetradic
#331C65 #651C2A #4E651C #1C6557
square
#331C65 #651C2A #4E651C #1C6557
split-complementary
#331C65 #65571C #2A651C
monochromatic
#0C0718 #1B0F35 #331C65 #4B2995 #6337C5

Accessibility & contrast

On white

14.05
#331C65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#331C65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C65
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C65#FFFFFF#000000##FFFFFF
##331C651.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D67
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#242E3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331c65;
/* rgb */ color: rgb(51, 28, 101);
/* oklch */ color: oklch(30.5% 0.121 292.1);
Tailwind
colors: {
  custom: {
    50: '#705a92',
    500: '#331c65',
    950: '#000000',
  },
}
SCSS
$custom: #331c65;
$custom-light: #705a92;
$custom-dark: #000000;
JSON
{
  "hex": "#331c65",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 101
  },
  "hsl": {
    "h": 258.904,
    "s": 56.589,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30452,
    "c": 0.1209,
    "h": 292.1
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#331C65
secondary
#7F9A43
accent
#E048B0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331C65

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

Preview Lab → · Contrast checker → · Palette generator →

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