#331E65#331E65

#331E65 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.118 H 291.5°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#331E65
RGBrgb(51, 30, 101)
HSLhsl(258, 54%, 26%)
HSVhsv(258, 70%, 40%)
CMYKcmyk(49.5%, 70.3%, 0%, 60.4%)
CIE-LABlab(18.24, 28.87, -38.39)
CIE-LCHlch(18.24, 48.03, 306.94°)
OKLaboklab(30.77% 0.0433 -0.1099)
OKLCHoklch(30.77% 0.118 291.5)
XYZxyz(4.1778, 2.5718, 12.5857)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E65 #50651E
analogous
#1E2D65 #331E65 #561E65
triadic
#331E65 #65331E #1E6533
tetradic
#331E65 #651E2D #50651E #1E6556
square
#331E65 #651E2D #50651E #1E6556
split-complementary
#331E65 #65561E #2D651E
monochromatic
#0C0718 #1B1036 #331E65 #4B2C94 #633AC3

Accessibility & contrast

On white

13.87
#331E65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E65
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E65#FFFFFF#000000##FFFFFF
##331E651.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E67
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#242F3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #331e65;
/* rgb */ color: rgb(51, 30, 101);
/* oklch */ color: oklch(30.8% 0.118 291.5);
Tailwind
colors: {
  custom: {
    50: '#705b92',
    500: '#331e65',
    950: '#000000',
  },
}
SCSS
$custom: #331e65;
$custom-light: #705b92;
$custom-dark: #000000;
JSON
{
  "hex": "#331e65",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 101
  },
  "hsl": {
    "h": 257.746,
    "s": 54.198,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30768,
    "c": 0.11812,
    "h": 291.5
  },
  "luminance": 0.02572
}

Semantic roles & 50–950 ramp

primary
#331E65
secondary
#819A45
accent
#DE4AB2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #331E65

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

Preview Lab → · Contrast checker → · Palette generator →

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