#331753#331753

#331753 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.104 H 301.4°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#331753
RGBrgb(51, 23, 83)
HSLhsl(268, 57%, 21%)
HSVhsv(268, 72%, 33%)
CMYKcmyk(38.6%, 72.3%, 0%, 67.5%)
CIE-LABlab(15.18, 27.62, -31.34)
CIE-LCHlch(15.18, 41.78, 311.39°)
OKLaboklab(28.08% 0.0543 -0.0892)
OKLCHoklch(28.08% 0.104 301.4)
XYZxyz(3.2326, 1.9411, 8.3863)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331753 #375317
analogous
#171953 #331753 #511753
triadic
#331753 #533317 #175333
tetradic
#331753 #531719 #375317 #175351
square
#331753 #531719 #375317 #175351
split-complementary
#331753 #535117 #195317
monochromatic
#0F0718 #160A23 #331753 #502483 #6E32B3

Accessibility & contrast

On white

15.13
#331753 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331753
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331753#FFFFFF#000000##FFFFFF
##3317531.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002655
Deuteranopia (green-blind)
#002652
Tritanopia (blue-blind)
#2C2532
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #331753;
/* rgb */ color: rgb(51, 23, 83);
/* oklch */ color: oklch(28.1% 0.104 301.4);
Tailwind
colors: {
  custom: {
    50: '#6e5684',
    500: '#331753',
    950: '#000000',
  },
}
SCSS
$custom: #331753;
$custom-light: #6e5684;
$custom-dark: #000000;
JSON
{
  "hex": "#331753",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 83
  },
  "hsl": {
    "h": 268,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28083,
    "c": 0.1044,
    "h": 301.4
  },
  "luminance": 0.01941
}

Semantic roles & 50–950 ramp

primary
#331753
secondary
#668A3C
accent
#E04899
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331753

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

Preview Lab → · Contrast checker → · Palette generator →

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