#331752#331752

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

Color values

HEX#331752
RGBrgb(51, 23, 82)
HSLhsl(268, 56%, 21%)
HSVhsv(268, 72%, 32%)
CMYKcmyk(37.8%, 72%, 0%, 67.8%)
CIE-LABlab(15.09, 27.33, -30.80)
CIE-LCHlch(15.09, 41.18, 311.59°)
OKLaboklab(28% 0.0544 -0.0876)
OKLCHoklch(28% 0.103 301.9)
XYZxyz(3.1943, 1.9258, 8.1844)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331752 #365217
analogous
#171852 #331752 #501752
triadic
#331752 #523317 #175233
tetradic
#331752 #521718 #365217 #175250
square
#331752 #521718 #365217 #175250
split-complementary
#331752 #525017 #185217
monochromatic
#0F0718 #150A22 #331752 #512482 #6E32B2

Accessibility & contrast

On white

15.16
#331752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#331752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331752
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331752#FFFFFF#000000##FFFFFF
##3317521.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331752;
/* rgb */ color: rgb(51, 23, 82);
/* oklch */ color: oklch(28.0% 0.103 301.9);
Tailwind
colors: {
  custom: {
    50: '#6e5683',
    500: '#331752',
    950: '#000000',
  },
}
SCSS
$custom: #331752;
$custom-light: #6e5683;
$custom-dark: #000000;
JSON
{
  "hex": "#331752",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 268.475,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27997,
    "c": 0.1031,
    "h": 301.9
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#331752
secondary
#64893C
accent
#DF4898
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #331752

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

Preview Lab → · Contrast checker → · Palette generator →

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