#331054#331054

#331054 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.115 H 302.7°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#331054
RGBrgb(51, 16, 84)
HSLhsl(271, 68%, 20%)
HSVhsv(271, 81%, 33%)
CMYKcmyk(39.3%, 81%, 0%, 67.1%)
CIE-LABlab(13.91, 31.68, -34.08)
CIE-LCHlch(13.91, 46.53, 312.92°)
OKLaboklab(27.21% 0.0623 -0.0971)
OKLCHoklch(27.21% 0.115 302.7)
XYZxyz(3.1504, 1.7145, 8.5507)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331054 #315410
analogous
#111054 #331054 #541053
triadic
#331054 #543310 #105433
tetradic
#331054 #541110 #315410 #105354
square
#331054 #541110 #315410 #105354
split-complementary
#331054 #535410 #105411
monochromatic
#10051A #140621 #331054 #521A87 #7124BB

Accessibility & contrast

On white

15.64
#331054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331054
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331054#FFFFFF#000000##FFFFFF
##3310541.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#2C2131
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #331054;
/* rgb */ color: rgb(51, 16, 84);
/* oklch */ color: oklch(27.2% 0.115 302.7);
Tailwind
colors: {
  custom: {
    50: '#6f5285',
    500: '#331054',
    950: '#000000',
  },
}
SCSS
$custom: #331054;
$custom-light: #6f5285;
$custom-dark: #000000;
JSON
{
  "hex": "#331054",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 270.882,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2721,
    "c": 0.11542,
    "h": 302.7
  },
  "luminance": 0.01714
}

Semantic roles & 50–950 ramp

primary
#331054
secondary
#5F8E32
accent
#EB3D91
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #331054

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

Preview Lab → · Contrast checker → · Palette generator →

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