#331559#331559

#331559 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.115 H 299.0°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#331559
RGBrgb(51, 21, 89)
HSLhsl(266, 62%, 22%)
HSVhsv(266, 76%, 35%)
CMYKcmyk(42.7%, 76.4%, 0%, 65.1%)
CIE-LABlab(15.28, 30.49, -35.22)
CIE-LCHlch(15.28, 46.58, 310.88°)
OKLaboklab(28.32% 0.0557 -0.1006)
OKLCHoklch(28.32% 0.115 299)
XYZxyz(3.4361, 1.9614, 9.6468)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331559 #3B5915
analogous
#151959 #331559 #551559
triadic
#331559 #593315 #155933
tetradic
#331559 #591519 #3B5915 #155955
square
#331559 #591519 #3B5915 #155955
split-complementary
#331559 #595515 #195915
monochromatic
#0E0619 #170927 #331559 #4F218B #6C2CBC

Accessibility & contrast

On white

15.08
#331559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331559
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331559#FFFFFF#000000##FFFFFF
##3315591.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002658
Tritanopia (blue-blind)
#2A2635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331559;
/* rgb */ color: rgb(51, 21, 89);
/* oklch */ color: oklch(28.3% 0.115 299.0);
Tailwind
colors: {
  custom: {
    50: '#6f5588',
    500: '#331559',
    950: '#000000',
  },
}
SCSS
$custom: #331559;
$custom-light: #6f5588;
$custom-dark: #000000;
JSON
{
  "hex": "#331559",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 266.471,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28322,
    "c": 0.11496,
    "h": 299
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#331559
secondary
#6A9139
accent
#E5439D
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331559

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

Preview Lab → · Contrast checker → · Palette generator →

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