#331C67#331C67

#331C67 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.124 H 291.4°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#331C67
RGBrgb(51, 28, 103)
HSLhsl(258, 57%, 26%)
HSVhsv(258, 73%, 40%)
CMYKcmyk(50.5%, 72.8%, 0%, 59.6%)
CIE-LABlab(17.98, 30.70, -40.13)
CIE-LCHlch(17.98, 50.52, 307.42°)
OKLaboklab(30.64% 0.0452 -0.115)
OKLCHoklch(30.64% 0.124 291.4)
XYZxyz(4.2280, 2.5134, 13.0917)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C67 #50671C
analogous
#1C2A67 #331C67 #581C67
triadic
#331C67 #67331C #1C6733
tetradic
#331C67 #671C2A #50671C #1C6758
square
#331C67 #671C2A #50671C #1C6758
split-complementary
#331C67 #67581C #2A671C
monochromatic
#0C0718 #1B0F37 #331C67 #4B2997 #6336C7

Accessibility & contrast

On white

13.97
#331C67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#331C67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C67
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C67#FFFFFF#000000##FFFFFF
##331C671.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D69
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#232F3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331c67;
/* rgb */ color: rgb(51, 28, 103);
/* oklch */ color: oklch(30.6% 0.124 291.4);
Tailwind
colors: {
  custom: {
    50: '#705a93',
    500: '#331c67',
    950: '#000000',
  },
}
SCSS
$custom: #331c67;
$custom-light: #705a93;
$custom-dark: #000000;
JSON
{
  "hex": "#331c67",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 103
  },
  "hsl": {
    "h": 258.4,
    "s": 57.252,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30636,
    "c": 0.12356,
    "h": 291.4
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#331C67
secondary
#819C43
accent
#E147B2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331C67

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

Preview Lab → · Contrast checker → · Palette generator →

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