#331E66#331E66

#331E66 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.9% C 0.119 H 291.2°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#331E66
RGBrgb(51, 30, 102)
HSLhsl(258, 55%, 26%)
HSVhsv(258, 71%, 40%)
CMYKcmyk(50%, 70.6%, 0%, 60%)
CIE-LABlab(18.33, 29.19, -38.90)
CIE-LCHlch(18.33, 48.64, 306.88°)
OKLaboklab(30.86% 0.0431 -0.1114)
OKLCHoklch(30.86% 0.119 291.2)
XYZxyz(4.2271, 2.5915, 12.8453)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E66 #51661E
analogous
#1E2D66 #331E66 #571E66
triadic
#331E66 #66331E #1E6633
tetradic
#331E66 #661E2D #51661E #1E6657
square
#331E66 #661E2D #51661E #1E6657
split-complementary
#331E66 #66571E #2D661E
monochromatic
#0C0718 #1B1037 #331E66 #4B2C95 #623AC5

Accessibility & contrast

On white

13.83
#331E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#331E66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E66
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E66#FFFFFF#000000##FFFFFF
##331E661.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E68
Deuteranopia (green-blind)
#002B65
Tritanopia (blue-blind)
#23303F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331e66;
/* rgb */ color: rgb(51, 30, 102);
/* oklch */ color: oklch(30.9% 0.119 291.2);
Tailwind
colors: {
  custom: {
    50: '#705b92',
    500: '#331e66',
    950: '#000000',
  },
}
SCSS
$custom: #331e66;
$custom-light: #705b92;
$custom-dark: #000000;
JSON
{
  "hex": "#331e66",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 102
  },
  "hsl": {
    "h": 257.5,
    "s": 54.545,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30858,
    "c": 0.11947,
    "h": 291.2
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#331E66
secondary
#829B45
accent
#DE4AB3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331E66

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

Preview Lab → · Contrast checker → · Palette generator →

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