#331C69#331C69

#331C69 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.8% C 0.126 H 290.8°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#331C69
RGBrgb(51, 28, 105)
HSLhsl(258, 58%, 26%)
HSVhsv(258, 73%, 41%)
CMYKcmyk(51.4%, 73.3%, 0%, 58.8%)
CIE-LABlab(18.16, 31.32, -41.14)
CIE-LCHlch(18.16, 51.71, 307.28°)
OKLaboklab(30.82% 0.0448 -0.118)
OKLCHoklch(30.82% 0.126 290.8)
XYZxyz(4.3296, 2.5541, 13.6267)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C69 #52691C
analogous
#1C2B69 #331C69 #591C69
triadic
#331C69 #69331C #1C6933
tetradic
#331C69 #691C2B #52691C #1C6959
square
#331C69 #691C2B #52691C #1C6959
split-complementary
#331C69 #69591C #2B691C
monochromatic
#0C0618 #1C0F39 #331C69 #4A2999 #6236C9

Accessibility & contrast

On white

13.90
#331C69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#331C69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C69
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C69#FFFFFF#000000##FFFFFF
##331C691.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6B
Deuteranopia (green-blind)
#002B67
Tritanopia (blue-blind)
#213040
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331c69;
/* rgb */ color: rgb(51, 28, 105);
/* oklch */ color: oklch(30.8% 0.126 290.8);
Tailwind
colors: {
  custom: {
    50: '#715a95',
    500: '#331c69',
    950: '#000000',
  },
}
SCSS
$custom: #331c69;
$custom-light: #715a95;
$custom-dark: #000000;
JSON
{
  "hex": "#331c69",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 105
  },
  "hsl": {
    "h": 257.922,
    "s": 57.895,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30823,
    "c": 0.1262,
    "h": 290.8
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#331C69
secondary
#839E43
accent
#E147B3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331C69

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

Preview Lab → · Contrast checker → · Palette generator →

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