#331652#331652

#331652 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.105 H 302.2°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#331652
RGBrgb(51, 22, 82)
HSLhsl(269, 58%, 20%)
HSVhsv(269, 73%, 32%)
CMYKcmyk(37.8%, 73.2%, 0%, 67.8%)
CIE-LABlab(14.88, 27.92, -31.14)
CIE-LCHlch(14.88, 41.82, 311.88°)
OKLaboklab(27.85% 0.0557 -0.0886)
OKLCHoklch(27.85% 0.105 302.2)
XYZxyz(3.1748, 1.8868, 8.1779)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331652 #355216
analogous
#161752 #331652 #511652
triadic
#331652 #523316 #165233
tetradic
#331652 #521617 #355216 #165251
square
#331652 #521617 #355216 #165251
split-complementary
#331652 #525116 #175216
monochromatic
#0F0618 #150922 #331652 #512382 #6F30B3

Accessibility & contrast

On white

15.25
#331652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331652
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331652#FFFFFF#000000##FFFFFF
##3316521.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#2D2432
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331652;
/* rgb */ color: rgb(51, 22, 82);
/* oklch */ color: oklch(27.8% 0.105 302.2);
Tailwind
colors: {
  custom: {
    50: '#6e5583',
    500: '#331652',
    950: '#000000',
  },
}
SCSS
$custom: #331652;
$custom-light: #6e5583;
$custom-dark: #000000;
JSON
{
  "hex": "#331652",
  "rgb": {
    "r": 51,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 269,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27846,
    "c": 0.10463,
    "h": 302.2
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#331652
secondary
#63893A
accent
#E14796
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331652

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

Preview Lab → · Contrast checker → · Palette generator →

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