#331E70#331E70

#331E70 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.133 H 288.1°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#331E70
RGBrgb(51, 30, 112)
HSLhsl(255, 58%, 28%)
HSVhsv(255, 73%, 44%)
CMYKcmyk(54.5%, 73.2%, 0%, 56.1%)
CIE-LABlab(19.23, 32.35, -43.94)
CIE-LCHlch(19.23, 54.57, 306.36°)
OKLaboklab(31.79% 0.0414 -0.1262)
OKLCHoklch(31.79% 0.133 288.1)
XYZxyz(4.7533, 2.8020, 15.6165)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E70 #5B701E
analogous
#1E3270 #331E70 #5C1E70
triadic
#331E70 #70331E #1E7033
tetradic
#331E70 #701E32 #5B701E #1E705C
square
#331E70 #701E32 #5B701E #1E705C
split-complementary
#331E70 #705C1E #32701E
monochromatic
#0B0618 #1D1140 #331E70 #492BA0 #623DCB

Accessibility & contrast

On white

13.46
#331E70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#331E70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E70
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E70#FFFFFF#000000##FFFFFF
##331E701.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#1C3344
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #331e70;
/* rgb */ color: rgb(51, 30, 112);
/* oklch */ color: oklch(31.8% 0.133 288.1);
Tailwind
colors: {
  custom: {
    50: '#725c9a',
    500: '#331e70',
    950: '#000000',
  },
}
SCSS
$custom: #331e70;
$custom-light: #725c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#331e70",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 112
  },
  "hsl": {
    "h": 255.366,
    "s": 57.746,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31788,
    "c": 0.13282,
    "h": 288.1
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#331E70
secondary
#8CA446
accent
#E147BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #331E70

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

Preview Lab → · Contrast checker → · Palette generator →

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