#331056#331056

#331056 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.4% C 0.118 H 301.6°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#331056
RGBrgb(51, 16, 86)
HSLhsl(270, 69%, 20%)
HSVhsv(270, 81%, 34%)
CMYKcmyk(40.7%, 81.4%, 0%, 66.3%)
CIE-LABlab(14.10, 32.23, -35.13)
CIE-LCHlch(14.10, 47.68, 312.53°)
OKLaboklab(27.4% 0.0618 -0.1003)
OKLCHoklch(27.4% 0.118 301.6)
XYZxyz(3.2298, 1.7463, 8.9692)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331056 #335610
analogous
#101056 #331056 #561056
triadic
#331056 #563310 #105633
tetradic
#331056 #561010 #335610 #105656
square
#331056 #561010 #335610 #105656
split-complementary
#331056 #565610 #105610
monochromatic
#0F051A #140622 #331056 #521A8A #7023BD

Accessibility & contrast

On white

15.56
#331056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#331056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331056
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331056#FFFFFF#000000##FFFFFF
##3310561.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#2B2232
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331056;
/* rgb */ color: rgb(51, 16, 86);
/* oklch */ color: oklch(27.4% 0.118 301.6);
Tailwind
colors: {
  custom: {
    50: '#6f5286',
    500: '#331056',
    950: '#000000',
  },
}
SCSS
$custom: #331056;
$custom-light: #6f5286;
$custom-dark: #000000;
JSON
{
  "hex": "#331056",
  "rgb": {
    "r": 51,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 270,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.27397,
    "c": 0.11777,
    "h": 301.6
  },
  "luminance": 0.01746
}

Semantic roles & 50–950 ramp

primary
#331056
secondary
#618F32
accent
#EB3C94
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #331056

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

Preview Lab → · Contrast checker → · Palette generator →

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