#331955#331955

#331955 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.104 H 299.7°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#331955
RGBrgb(51, 25, 85)
HSLhsl(266, 55%, 22%)
HSVhsv(266, 71%, 33%)
CMYKcmyk(40%, 70.6%, 0%, 66.7%)
CIE-LABlab(15.77, 27.02, -31.73)
CIE-LCHlch(15.77, 41.68, 310.41°)
OKLaboklab(28.57% 0.0515 -0.0903)
OKLCHoklch(28.57% 0.104 299.7)
XYZxyz(3.3522, 2.0549, 8.8126)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331955 #3B5519
analogous
#191D55 #331955 #511955
triadic
#331955 #553319 #195533
tetradic
#331955 #55191D #3B5519 #195551
square
#331955 #55191D #3B5519 #195551
split-complementary
#331955 #555119 #1D5519
monochromatic
#0E0718 #170B26 #331955 #4F2784 #6C35B4

Accessibility & contrast

On white

14.88
#331955 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331955 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331955
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331955#FFFFFF#000000##FFFFFF
##3319551.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002757
Deuteranopia (green-blind)
#002754
Tritanopia (blue-blind)
#2B2734
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331955;
/* rgb */ color: rgb(51, 25, 85);
/* oklch */ color: oklch(28.6% 0.104 299.7);
Tailwind
colors: {
  custom: {
    50: '#6e5785',
    500: '#331955',
    950: '#000000',
  },
}
SCSS
$custom: #331955;
$custom-light: #6e5785;
$custom-dark: #000000;
JSON
{
  "hex": "#331955",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 85
  },
  "hsl": {
    "h": 266,
    "s": 54.545,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28565,
    "c": 0.10396,
    "h": 299.7
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#331955
secondary
#6A8B3E
accent
#DE4A9E
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331955

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

Preview Lab → · Contrast checker → · Palette generator →

#331955 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva