#331867#331867

#331867 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.129 H 292.5°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#331867
RGBrgb(51, 24, 103)
HSLhsl(261, 62%, 25%)
HSVhsv(261, 77%, 40%)
CMYKcmyk(50.5%, 76.7%, 0%, 59.6%)
CIE-LABlab(17.16, 32.98, -41.46)
CIE-LCHlch(17.16, 52.98, 308.50°)
OKLaboklab(30.05% 0.0493 -0.1189)
OKLCHoklch(30.05% 0.129 292.5)
XYZxyz(4.1394, 2.3362, 13.0622)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331867 #4C6718
analogous
#182567 #331867 #5A1867
triadic
#331867 #673318 #186733
tetradic
#331867 #671825 #4C6718 #18675A
square
#331867 #671825 #4C6718 #18675A
split-complementary
#331867 #675A18 #256718
monochromatic
#0C0619 #1A0C35 #331867 #4C2499 #642FCA

Accessibility & contrast

On white

14.31
#331867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#331867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331867
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331867#FFFFFF#000000##FFFFFF
##3318671.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B69
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#232D3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #331867;
/* rgb */ color: rgb(51, 24, 103);
/* oklch */ color: oklch(30.1% 0.129 292.5);
Tailwind
colors: {
  custom: {
    50: '#715893',
    500: '#331867',
    950: '#000000',
  },
}
SCSS
$custom: #331867;
$custom-light: #715893;
$custom-dark: #000000;
JSON
{
  "hex": "#331867",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 260.506,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30054,
    "c": 0.12873,
    "h": 292.5
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#331867
secondary
#7C9D3E
accent
#E543AE
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #331867

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

Preview Lab → · Contrast checker → · Palette generator →

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