#331C6E#331C6E

#331C6E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.133 H 289.2°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#331C6E
RGBrgb(51, 28, 110)
HSLhsl(257, 59%, 27%)
HSVhsv(257, 75%, 43%)
CMYKcmyk(53.6%, 74.5%, 0%, 56.9%)
CIE-LABlab(18.63, 32.88, -43.64)
CIE-LCHlch(18.63, 54.64, 307.00°)
OKLaboklab(31.3% 0.0438 -0.1253)
OKLCHoklch(31.3% 0.133 289.2)
XYZxyz(4.5942, 2.6599, 15.0202)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331C6E #576E1C
analogous
#1C2E6E #331C6E #5C1C6E
triadic
#331C6E #6E331C #1C6E33
tetradic
#331C6E #6E1C2E #576E1C #1C6E5C
square
#331C6E #6E1C2E #576E1C #1C6E5C
split-complementary
#331C6E #6E5C1C #2E6E1C
monochromatic
#0B0618 #1C103D #331C6E #4A289F #6238CC

Accessibility & contrast

On white

13.71
#331C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#331C6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331C6E
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331C6E#FFFFFF#000000##FFFFFF
##331C6E1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#1E3143
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331c6e;
/* rgb */ color: rgb(51, 28, 110);
/* oklch */ color: oklch(31.3% 0.133 289.2);
Tailwind
colors: {
  custom: {
    50: '#715a98',
    500: '#331c6e',
    950: '#000000',
  },
}
SCSS
$custom: #331c6e;
$custom-light: #715a98;
$custom-dark: #000000;
JSON
{
  "hex": "#331c6e",
  "rgb": {
    "r": 51,
    "g": 28,
    "b": 110
  },
  "hsl": {
    "h": 256.829,
    "s": 59.42,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31299,
    "c": 0.13273,
    "h": 289.2
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#331C6E
secondary
#88A343
accent
#E345B6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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