#331654#331654

#331654 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.107 H 301.1°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#331654
RGBrgb(51, 22, 84)
HSLhsl(268, 58%, 21%)
HSVhsv(268, 74%, 33%)
CMYKcmyk(39.3%, 73.8%, 0%, 67.1%)
CIE-LABlab(15.05, 28.49, -32.23)
CIE-LCHlch(15.05, 43.01, 311.48°)
OKLaboklab(28.02% 0.0554 -0.0917)
OKLCHoklch(28.02% 0.107 301.1)
XYZxyz(3.2520, 1.9177, 8.5846)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331654 #375416
analogous
#161854 #331654 #521654
triadic
#331654 #543316 #165433
tetradic
#331654 #541618 #375416 #165452
square
#331654 #541618 #375416 #165452
split-complementary
#331654 #545216 #185416
monochromatic
#0F0618 #160924 #331654 #502384 #6E2FB5

Accessibility & contrast

On white

15.18
#331654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331654 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331654
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331654#FFFFFF#000000##FFFFFF
##3316541.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#2C2433
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331654;
/* rgb */ color: rgb(51, 22, 84);
/* oklch */ color: oklch(28.0% 0.107 301.1);
Tailwind
colors: {
  custom: {
    50: '#6e5585',
    500: '#331654',
    950: '#000000',
  },
}
SCSS
$custom: #331654;
$custom-light: #6e5585;
$custom-dark: #000000;
JSON
{
  "hex": "#331654",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 84
  },
  "hsl": {
    "h": 268.065,
    "s": 58.491,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28019,
    "c": 0.10719,
    "h": 301.1
  },
  "luminance": 0.01918
}

Semantic roles & 50–950 ramp

primary
#331654
secondary
#668B3A
accent
#E24699
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331654

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

Preview Lab → · Contrast checker → · Palette generator →

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