#331759#331759

#331759 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.112 H 298.4°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#331759
RGBrgb(51, 23, 89)
HSLhsl(265, 59%, 22%)
HSVhsv(265, 74%, 35%)
CMYKcmyk(42.7%, 74.2%, 0%, 65.1%)
CIE-LABlab(15.68, 29.37, -34.57)
CIE-LCHlch(15.68, 45.36, 310.35°)
OKLaboklab(28.61% 0.0534 -0.0986)
OKLCHoklch(28.61% 0.112 298.4)
XYZxyz(3.4744, 2.0378, 9.6595)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331759 #3D5917
analogous
#171C59 #331759 #541759
triadic
#331759 #593317 #175933
tetradic
#331759 #59171C #3D5917 #175954
square
#331759 #59171C #3D5917 #175954
split-complementary
#331759 #595417 #1C5917
monochromatic
#0E0618 #170A28 #331759 #4F248A #6B30BA

Accessibility & contrast

On white

14.92
#331759 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#331759 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331759
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331759#FFFFFF#000000##FFFFFF
##3317591.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275B
Deuteranopia (green-blind)
#002658
Tritanopia (blue-blind)
#2A2736
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #331759;
/* rgb */ color: rgb(51, 23, 89);
/* oklch */ color: oklch(28.6% 0.112 298.4);
Tailwind
colors: {
  custom: {
    50: '#6f5688',
    500: '#331759',
    950: '#000000',
  },
}
SCSS
$custom: #331759;
$custom-light: #6f5688;
$custom-dark: #000000;
JSON
{
  "hex": "#331759",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 89
  },
  "hsl": {
    "h": 265.455,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28608,
    "c": 0.11217,
    "h": 298.4
  },
  "luminance": 0.02038
}

Semantic roles & 50–950 ramp

primary
#331759
secondary
#6C903C
accent
#E246A0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #331759

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

Preview Lab → · Contrast checker → · Palette generator →

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