#331E67#331E67

#331E67 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 30.9% C 0.121 H 290.8°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#331E67
RGBrgb(51, 30, 103)
HSLhsl(257, 55%, 26%)
HSVhsv(257, 71%, 40%)
CMYKcmyk(50.5%, 70.9%, 0%, 59.6%)
CIE-LABlab(18.42, 29.50, -39.42)
CIE-LCHlch(18.42, 49.23, 306.81°)
OKLaboklab(30.95% 0.043 -0.1129)
OKLCHoklch(30.95% 0.121 290.8)
XYZxyz(4.2770, 2.6115, 13.1080)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E67 #52671E
analogous
#1E2D67 #331E67 #571E67
triadic
#331E67 #67331E #1E6733
tetradic
#331E67 #671E2D #52671E #1E6757
square
#331E67 #671E2D #52671E #1E6757
split-complementary
#331E67 #67571E #2D671E
monochromatic
#0C0718 #1C1038 #331E67 #4A2C96 #623AC6

Accessibility & contrast

On white

13.79
#331E67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E67
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E67#FFFFFF#000000##FFFFFF
##331E671.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E69
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#22303F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331e67;
/* rgb */ color: rgb(51, 30, 103);
/* oklch */ color: oklch(30.9% 0.121 290.8);
Tailwind
colors: {
  custom: {
    50: '#705b93',
    500: '#331e67',
    950: '#000000',
  },
}
SCSS
$custom: #331e67;
$custom-light: #705b93;
$custom-dark: #000000;
JSON
{
  "hex": "#331e67",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 103
  },
  "hsl": {
    "h": 257.26,
    "s": 54.887,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30949,
    "c": 0.12083,
    "h": 290.8
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#331E67
secondary
#839C45
accent
#DE4AB3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331E67

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

Preview Lab → · Contrast checker → · Palette generator →

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