#331861#331861

#331861 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.121 H 294.7°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#331861
RGBrgb(51, 24, 97)
HSLhsl(262, 60%, 24%)
HSVhsv(262, 75%, 38%)
CMYKcmyk(47.4%, 75.3%, 0%, 62%)
CIE-LABlab(16.60, 31.18, -38.42)
CIE-LCHlch(16.60, 49.48, 309.06°)
OKLaboklab(29.49% 0.0507 -0.11)
OKLCHoklch(29.49% 0.121 294.7)
XYZxyz(3.8490, 2.2200, 11.5327)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331861 #466118
analogous
#182161 #331861 #571861
triadic
#331861 #613318 #186133
tetradic
#331861 #611821 #466118 #186157
square
#331861 #611821 #466118 #186157
split-complementary
#331861 #615718 #216118
monochromatic
#0D0619 #190C30 #331861 #4D2492 #6730C3

Accessibility & contrast

On white

14.54
#331861 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#331861 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331861
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331861#FFFFFF#000000##FFFFFF
##3318611.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A63
Deuteranopia (green-blind)
#002860
Tritanopia (blue-blind)
#262A3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #331861;
/* rgb */ color: rgb(51, 24, 97);
/* oklch */ color: oklch(29.5% 0.121 294.7);
Tailwind
colors: {
  custom: {
    50: '#70578f',
    500: '#331861',
    950: '#000000',
  },
}
SCSS
$custom: #331861;
$custom-light: #70578f;
$custom-dark: #000000;
JSON
{
  "hex": "#331861",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 97
  },
  "hsl": {
    "h": 262.192,
    "s": 60.331,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29485,
    "c": 0.12108,
    "h": 294.7
  },
  "luminance": 0.0222
}

Semantic roles & 50–950 ramp

primary
#331861
secondary
#76973D
accent
#E344A9
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #331861

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

Preview Lab → · Contrast checker → · Palette generator →

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