#331A55#331A55

#331A55 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.102 H 299.4°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#331A55
RGBrgb(51, 26, 85)
HSLhsl(265, 53%, 22%)
HSVhsv(265, 69%, 33%)
CMYKcmyk(40%, 69.4%, 0%, 66.7%)
CIE-LABlab(16.00, 26.41, -31.37)
CIE-LCHlch(16.00, 41.01, 310.10°)
OKLaboklab(28.73% 0.0502 -0.0892)
OKLCHoklch(28.73% 0.102 299.4)
XYZxyz(3.3739, 2.0984, 8.8199)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331A55 #3C551A
analogous
#1A1F55 #331A55 #511A55
triadic
#331A55 #55331A #1A5533
tetradic
#331A55 #551A1F #3C551A #1A5551
square
#331A55 #551A1F #3C551A #1A5551
split-complementary
#331A55 #55511A #1F551A
monochromatic
#0E0717 #170C26 #331A55 #4F2884 #6B37B3

Accessibility & contrast

On white

14.79
#331A55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331A55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331A55
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331A55#FFFFFF#000000##FFFFFF
##331A551.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002857
Deuteranopia (green-blind)
#012754
Tritanopia (blue-blind)
#2B2734
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331a55;
/* rgb */ color: rgb(51, 26, 85);
/* oklch */ color: oklch(28.7% 0.102 299.4);
Tailwind
colors: {
  custom: {
    50: '#6e5885',
    500: '#331a55',
    950: '#000000',
  },
}
SCSS
$custom: #331a55;
$custom-light: #6e5885;
$custom-dark: #000000;
JSON
{
  "hex": "#331a55",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 85
  },
  "hsl": {
    "h": 265.424,
    "s": 53.153,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28726,
    "c": 0.10239,
    "h": 299.4
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#331A55
secondary
#6B8B40
accent
#DD4B9F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331A55

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

Preview Lab → · Contrast checker → · Palette generator →

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