#331C68#331C68

#331C68 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.125 H 291.1°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#331C68
RGBrgb(51, 28, 104)
HSLhsl(258, 58%, 26%)
HSVhsv(258, 73%, 41%)
CMYKcmyk(51%, 73.1%, 0%, 59.2%)
CIE-LABlab(18.07, 31.01, -40.64)
CIE-LCHlch(18.07, 51.12, 307.35°)
OKLaboklab(30.73% 0.045 -0.1165)
OKLCHoklch(30.73% 0.125 291.1)
XYZxyz(4.2785, 2.5336, 13.3576)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C68 #51681C
analogous
#1C2B68 #331C68 #591C68
triadic
#331C68 #68331C #1C6833
tetradic
#331C68 #681C2B #51681C #1C6859
square
#331C68 #681C2B #51681C #1C6859
split-complementary
#331C68 #68591C #2B681C
monochromatic
#0C0618 #1B0F38 #331C68 #4B2998 #6236C8

Accessibility & contrast

On white

13.94
#331C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331C68
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C68#FFFFFF#000000##FFFFFF
##331C681.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331c68;
/* rgb */ color: rgb(51, 28, 104);
/* oklch */ color: oklch(30.7% 0.125 291.1);
Tailwind
colors: {
  custom: {
    50: '#705a94',
    500: '#331c68',
    950: '#000000',
  },
}
SCSS
$custom: #331c68;
$custom-light: #705a94;
$custom-dark: #000000;
JSON
{
  "hex": "#331c68",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 258.158,
    "s": 57.576,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3073,
    "c": 0.12488,
    "h": 291.1
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#331C68
secondary
#829D43
accent
#E147B2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331C68

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

Preview Lab → · Contrast checker → · Palette generator →

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