#331E64#331E64

#331E64 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.7% C 0.117 H 291.8°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#331E64
RGBrgb(51, 30, 100)
HSLhsl(258, 54%, 25%)
HSVhsv(258, 70%, 39%)
CMYKcmyk(49%, 70%, 0%, 60.8%)
CIE-LABlab(18.15, 28.56, -37.87)
CIE-LCHlch(18.15, 47.43, 307.02°)
OKLaboklab(30.68% 0.0434 -0.1084)
OKLCHoklch(30.68% 0.117 291.8)
XYZxyz(4.1291, 2.5523, 12.3292)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331E64 #4F641E
analogous
#1E2C64 #331E64 #561E64
triadic
#331E64 #64331E #1E6433
tetradic
#331E64 #641E2C #4F641E #1E6456
square
#331E64 #641E2C #4F641E #1E6456
split-complementary
#331E64 #64561E #2C641E
monochromatic
#0C0718 #1B1035 #331E64 #4B2C93 #633AC2

Accessibility & contrast

On white

13.90
#331E64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331E64
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331E64#FFFFFF#000000##FFFFFF
##331E641.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D66
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#242F3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #331e64;
/* rgb */ color: rgb(51, 30, 100);
/* oklch */ color: oklch(30.7% 0.117 291.8);
Tailwind
colors: {
  custom: {
    50: '#705b91',
    500: '#331e64',
    950: '#000000',
  },
}
SCSS
$custom: #331e64;
$custom-light: #705b91;
$custom-dark: #000000;
JSON
{
  "hex": "#331e64",
  "rgb": {
    "r": 51,
    "g": 30,
    "b": 100
  },
  "hsl": {
    "h": 258,
    "s": 53.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30679,
    "c": 0.11676,
    "h": 291.8
  },
  "luminance": 0.02552
}

Semantic roles & 50–950 ramp

primary
#331E64
secondary
#809945
accent
#DD4BB1
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040D
muted
#7B797D

Preview Lab

Preview with #331E64

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

Preview Lab → · Contrast checker → · Palette generator →

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