#331855#331855

#331855 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.105 H 300.0°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#331855
RGBrgb(51, 24, 85)
HSLhsl(267, 56%, 21%)
HSVhsv(267, 72%, 33%)
CMYKcmyk(40%, 71.8%, 0%, 66.7%)
CIE-LABlab(15.55, 27.62, -32.08)
CIE-LCHlch(15.55, 42.33, 310.72°)
OKLaboklab(28.41% 0.0528 -0.0913)
OKLCHoklch(28.41% 0.105 300)
XYZxyz(3.3312, 2.0129, 8.8056)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331855 #3A5518
analogous
#181C55 #331855 #521855
triadic
#331855 #553318 #185533
tetradic
#331855 #55181C #3A5518 #185552
square
#331855 #55181C #3A5518 #185552
split-complementary
#331855 #555218 #1C5518
monochromatic
#0E0718 #160B25 #331855 #502585 #6C33B4

Accessibility & contrast

On white

14.97
#331855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#331855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331855
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331855#FFFFFF#000000##FFFFFF
##3318551.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331855;
/* rgb */ color: rgb(51, 24, 85);
/* oklch */ color: oklch(28.4% 0.105 300.0);
Tailwind
colors: {
  custom: {
    50: '#6e5785',
    500: '#331855',
    950: '#000000',
  },
}
SCSS
$custom: #331855;
$custom-light: #6e5785;
$custom-dark: #000000;
JSON
{
  "hex": "#331855",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 266.557,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28408,
    "c": 0.10549,
    "h": 300
  },
  "luminance": 0.02013
}

Semantic roles & 50–950 ramp

primary
#331855
secondary
#698C3D
accent
#DF499D
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331855

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

Preview Lab → · Contrast checker → · Palette generator →

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