#331859#331859

#331859 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.111 H 298.1°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#331859
RGBrgb(51, 24, 89)
HSLhsl(265, 58%, 22%)
HSVhsv(265, 73%, 35%)
CMYKcmyk(42.7%, 73%, 0%, 65.1%)
CIE-LABlab(15.89, 28.79, -34.23)
CIE-LCHlch(15.89, 44.73, 310.07°)
OKLaboklab(28.76% 0.0522 -0.0977)
OKLCHoklch(28.76% 0.111 298.1)
XYZxyz(3.4946, 2.0783, 9.6663)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331859 #3E5918
analogous
#181E59 #331859 #541859
triadic
#331859 #593318 #185933
tetradic
#331859 #59181E #3E5918 #185954
square
#331859 #59181E #3E5918 #185954
split-complementary
#331859 #595418 #1E5918
monochromatic
#0E0618 #170B29 #331859 #4F2589 #6A32B9

Accessibility & contrast

On white

14.83
#331859 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331859
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331859#FFFFFF#000000##FFFFFF
##3318591.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331859;
/* rgb */ color: rgb(51, 24, 89);
/* oklch */ color: oklch(28.8% 0.111 298.1);
Tailwind
colors: {
  custom: {
    50: '#6f5788',
    500: '#331859',
    950: '#000000',
  },
}
SCSS
$custom: #331859;
$custom-light: #6f5788;
$custom-dark: #000000;
JSON
{
  "hex": "#331859",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 89
  },
  "hsl": {
    "h": 264.923,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28757,
    "c": 0.11074,
    "h": 298.1
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#331859
secondary
#6D903D
accent
#E147A1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331859

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

Preview Lab → · Contrast checker → · Palette generator →

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