#331E5A#331E5A

#331E5A is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.103 H 295.6°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#331E5A
RGBrgb(51, 30, 90)
HSLhsl(261, 50%, 24%)
HSVhsv(261, 67%, 35%)
CMYKcmyk(43.3%, 66.7%, 0%, 64.7%)
CIE-LABlab(17.32, 25.43, -32.59)
CIE-LCHlch(17.32, 41.34, 307.97°)
OKLaboklab(29.82% 0.0445 -0.0928)
OKLCHoklch(29.82% 0.103 295.6)
XYZxyz(3.6745, 2.3705, 9.9348)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E5A #455A1E
analogous
#1E275A #331E5A #511E5A
triadic
#331E5A #5A331E #1E5A33
tetradic
#331E5A #5A1E27 #455A1E #1E5A51
square
#331E5A #5A1E27 #455A1E #1E5A51
split-complementary
#331E5A #5A511E #275A1E
monochromatic
#0D0817 #190F2C #331E5A #4D2D88 #673DB6

Accessibility & contrast

On white

14.25
#331E5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331E5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331E5A
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E5A#FFFFFF#000000##FFFFFF
##331E5A1.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#002A59
Tritanopia (blue-blind)
#292B38
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #331e5a;
/* rgb */ color: rgb(51, 30, 90);
/* oklch */ color: oklch(29.8% 0.103 295.6);
Tailwind
colors: {
  custom: {
    50: '#6e5b89',
    500: '#331e5a',
    950: '#000000',
  },
}
SCSS
$custom: #331e5a;
$custom-light: #6e5b89;
$custom-dark: #000000;
JSON
{
  "hex": "#331e5a",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 90
  },
  "hsl": {
    "h": 261,
    "s": 50,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29815,
    "c": 0.10295,
    "h": 295.6
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#331E5A
secondary
#758F45
accent
#DA4EA9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #331E5A

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

Preview Lab → · Contrast checker → · Palette generator →

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