#331959#331959

#331959 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.109 H 297.8°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#331959
RGBrgb(51, 25, 89)
HSLhsl(264, 56%, 22%)
HSVhsv(264, 72%, 35%)
CMYKcmyk(42.7%, 71.9%, 0%, 65.1%)
CIE-LABlab(16.11, 28.20, -33.89)
CIE-LCHlch(16.11, 44.09, 309.77°)
OKLaboklab(28.91% 0.051 -0.0966)
OKLCHoklch(28.91% 0.109 297.8)
XYZxyz(3.5156, 2.1203, 9.6733)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331959 #3F5919
analogous
#191F59 #331959 #531959
triadic
#331959 #593319 #195933
tetradic
#331959 #59191F #3F5919 #195953
square
#331959 #59191F #3F5919 #195953
split-complementary
#331959 #595319 #1F5919
monochromatic
#0E0718 #180C29 #331959 #4E2689 #6A34B9

Accessibility & contrast

On white

14.75
#331959 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#331959 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331959
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331959#FFFFFF#000000##FFFFFF
##3319591.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002758
Tritanopia (blue-blind)
#2A2836
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #331959;
/* rgb */ color: rgb(51, 25, 89);
/* oklch */ color: oklch(28.9% 0.109 297.8);
Tailwind
colors: {
  custom: {
    50: '#6e5888',
    500: '#331959',
    950: '#000000',
  },
}
SCSS
$custom: #331959;
$custom-light: #6e5888;
$custom-dark: #000000;
JSON
{
  "hex": "#331959",
  "rgb": {
    "r": 51,
    "g": 25,
    "b": 89
  },
  "hsl": {
    "h": 264.375,
    "s": 56.14,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2891,
    "c": 0.10927,
    "h": 297.8
  },
  "luminance": 0.0212
}

Semantic roles & 50–950 ramp

primary
#331959
secondary
#6E8F3E
accent
#DF48A2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331959

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

Preview Lab → · Contrast checker → · Palette generator →

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