#331558#331558

#331558 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.114 H 299.4°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#331558
RGBrgb(51, 21, 88)
HSLhsl(267, 61%, 21%)
HSVhsv(267, 76%, 35%)
CMYKcmyk(42%, 76.1%, 0%, 65.5%)
CIE-LABlab(15.19, 30.20, -34.70)
CIE-LCHlch(15.19, 46.00, 311.04°)
OKLaboklab(28.23% 0.0559 -0.099)
OKLCHoklch(28.23% 0.114 299.4)
XYZxyz(3.3944, 1.9447, 9.4272)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331558 #3A5815
analogous
#151958 #331558 #551558
triadic
#331558 #583315 #155833
tetradic
#331558 #581519 #3A5815 #155855
square
#331558 #581519 #3A5815 #155855
split-complementary
#331558 #585515 #195815
monochromatic
#0E0619 #160927 #331558 #502189 #6C2DBB

Accessibility & contrast

On white

15.12
#331558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331558
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331558#FFFFFF#000000##FFFFFF
##3315581.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#2A2535
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331558;
/* rgb */ color: rgb(51, 21, 88);
/* oklch */ color: oklch(28.2% 0.114 299.4);
Tailwind
colors: {
  custom: {
    50: '#6f5588',
    500: '#331558',
    950: '#000000',
  },
}
SCSS
$custom: #331558;
$custom-light: #6f5588;
$custom-dark: #000000;
JSON
{
  "hex": "#331558",
  "rgb": {
    "r": 51,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 266.866,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28231,
    "c": 0.1137,
    "h": 299.4
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#331558
secondary
#699039
accent
#E5439C
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331558

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

Preview Lab → · Contrast checker → · Palette generator →

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