#331359#331359

#331359 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.118 H 299.5°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#331359
RGBrgb(51, 19, 89)
HSLhsl(267, 65%, 21%)
HSVhsv(267, 79%, 35%)
CMYKcmyk(42.7%, 78.7%, 0%, 65.1%)
CIE-LABlab(14.90, 31.56, -35.84)
CIE-LCHlch(14.90, 47.75, 311.36°)
OKLaboklab(28.05% 0.0579 -0.1024)
OKLCHoklch(28.05% 0.118 299.5)
XYZxyz(3.4008, 1.8908, 9.6350)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331359 #395913
analogous
#131659 #331359 #561359
triadic
#331359 #593313 #135933
tetradic
#331359 #591316 #395913 #135956
square
#331359 #591316 #395913 #135956
split-complementary
#331359 #595613 #165913
monochromatic
#0E0519 #160827 #331359 #501E8B #6D29BE

Accessibility & contrast

On white

15.24
#331359 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331359 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331359
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331359#FFFFFF#000000##FFFFFF
##3313591.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#2A2535
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331359;
/* rgb */ color: rgb(51, 19, 89);
/* oklch */ color: oklch(28.1% 0.118 299.5);
Tailwind
colors: {
  custom: {
    50: '#6f5489',
    500: '#331359',
    950: '#000000',
  },
}
SCSS
$custom: #331359;
$custom-light: #6f5489;
$custom-dark: #000000;
JSON
{
  "hex": "#331359",
  "rgb": {
    "r": 51,
    "g": 19,
    "b": 89
  },
  "hsl": {
    "h": 267.429,
    "s": 64.815,
    "l": 21.176
  },
  "oklch": {
    "l": 0.28053,
    "c": 0.1176,
    "h": 299.5
  },
  "luminance": 0.01891
}

Semantic roles & 50–950 ramp

primary
#331359
secondary
#689137
accent
#E8409B
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331359

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

Preview Lab → · Contrast checker → · Palette generator →

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