#331357#331357

#331357 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.115 H 300.5°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#331357
RGBrgb(51, 19, 87)
HSLhsl(268, 64%, 21%)
HSVhsv(268, 78%, 34%)
CMYKcmyk(41.4%, 78.2%, 0%, 65.9%)
CIE-LABlab(14.72, 30.99, -34.79)
CIE-LCHlch(14.72, 46.59, 311.70°)
OKLaboklab(27.87% 0.0584 -0.0993)
OKLCHoklch(27.87% 0.115 300.5)
XYZxyz(3.3180, 1.8576, 9.1987)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331357 #375713
analogous
#131557 #331357 #551357
triadic
#331357 #573313 #135733
tetradic
#331357 #571315 #375713 #135755
square
#331357 #571315 #375713 #135755
split-complementary
#331357 #575513 #155713
monochromatic
#0F0519 #160825 #331357 #501E89 #6E29BB

Accessibility & contrast

On white

15.31
#331357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#331357 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331357
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331357#FFFFFF#000000##FFFFFF
##3313571.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#2B2433
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331357;
/* rgb */ color: rgb(51, 19, 87);
/* oklch */ color: oklch(27.9% 0.115 300.5);
Tailwind
colors: {
  custom: {
    50: '#6f5487',
    500: '#331357',
    950: '#000000',
  },
}
SCSS
$custom: #331357;
$custom-light: #6f5487;
$custom-dark: #000000;
JSON
{
  "hex": "#331357",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 268.235,
    "s": 64.151,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27868,
    "c": 0.11515,
    "h": 300.5
  },
  "luminance": 0.01858
}

Semantic roles & 50–950 ramp

primary
#331357
secondary
#668F36
accent
#E74199
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331357

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

Preview Lab → · Contrast checker → · Palette generator →

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