#331053#331053

#331053 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.114 H 303.2°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#331053
RGBrgb(51, 16, 83)
HSLhsl(271, 68%, 19%)
HSVhsv(271, 81%, 33%)
CMYKcmyk(38.6%, 80.7%, 0%, 67.5%)
CIE-LABlab(13.82, 31.41, -33.54)
CIE-LCHlch(13.82, 45.95, 313.12°)
OKLaboklab(27.12% 0.0626 -0.0956)
OKLCHoklch(27.12% 0.114 303.2)
XYZxyz(3.1115, 1.6989, 8.3459)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331053 #305310
analogous
#111053 #331053 #531052
triadic
#331053 #533310 #105333
tetradic
#331053 #531110 #305310 #105253
square
#331053 #531110 #305310 #105253
split-complementary
#331053 #525310 #105311
monochromatic
#10051A #130620 #331053 #531A86 #7224BA

Accessibility & contrast

On white

15.67
#331053 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#331053 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331053
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331053#FFFFFF#000000##FFFFFF
##3310531.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002355
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#2C2130
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331053;
/* rgb */ color: rgb(51, 16, 83);
/* oklch */ color: oklch(27.1% 0.114 303.2);
Tailwind
colors: {
  custom: {
    50: '#6e5284',
    500: '#331053',
    950: '#000000',
  },
}
SCSS
$custom: #331053;
$custom-light: #6e5284;
$custom-dark: #000000;
JSON
{
  "hex": "#331053",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 83
  },
  "hsl": {
    "h": 271.343,
    "s": 67.677,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27118,
    "c": 0.11423,
    "h": 303.2
  },
  "luminance": 0.01699
}

Semantic roles & 50–950 ramp

primary
#331053
secondary
#5D8D32
accent
#EB3D90
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #331053

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

Preview Lab → · Contrast checker → · Palette generator →

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