#331456#331456

#331456 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.113 H 300.7°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#331456
RGBrgb(51, 20, 86)
HSLhsl(268, 62%, 21%)
HSVhsv(268, 77%, 34%)
CMYKcmyk(40.7%, 76.7%, 0%, 66.3%)
CIE-LABlab(14.82, 30.17, -33.95)
CIE-LCHlch(14.82, 45.42, 311.63°)
OKLaboklab(27.91% 0.0575 -0.0968)
OKLCHoklch(27.91% 0.113 300.7)
XYZxyz(3.2947, 1.8760, 8.9908)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331456 #375614
analogous
#141656 #331456 #541456
triadic
#331456 #563314 #145633
tetradic
#331456 #561416 #375614 #145654
square
#331456 #561416 #375614 #145654
split-complementary
#331456 #565414 #165614
monochromatic
#0F0619 #160824 #331456 #502088 #6E2BB9

Accessibility & contrast

On white

15.27
#331456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#331456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331456
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331456#FFFFFF#000000##FFFFFF
##3314561.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#2B2433
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #331456;
/* rgb */ color: rgb(51, 20, 86);
/* oklch */ color: oklch(27.9% 0.113 300.7);
Tailwind
colors: {
  custom: {
    50: '#6e5486',
    500: '#331456',
    950: '#000000',
  },
}
SCSS
$custom: #331456;
$custom-light: #6e5486;
$custom-dark: #000000;
JSON
{
  "hex": "#331456",
  "rgb": {
    "r": 51,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 268.182,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27911,
    "c": 0.11257,
    "h": 300.7
  },
  "luminance": 0.01876
}

Semantic roles & 50–950 ramp

primary
#331456
secondary
#668E38
accent
#E54299
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #331456

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

Preview Lab → · Contrast checker → · Palette generator →

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