#331154#331154

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

Color values

HEX#331154
RGBrgb(51, 17, 84)
HSLhsl(270, 66%, 20%)
HSVhsv(270, 80%, 33%)
CMYKcmyk(39.3%, 79.8%, 0%, 67.1%)
CIE-LABlab(14.09, 31.18, -33.79)
CIE-LCHlch(14.09, 45.98, 312.70°)
OKLaboklab(27.33% 0.0612 -0.0963)
OKLCHoklch(27.33% 0.114 302.4)
XYZxyz(3.1655, 1.7448, 8.5558)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331154 #325411
analogous
#121154 #331154 #541154
triadic
#331154 #543311 #115433
tetradic
#331154 #541211 #325411 #115454
square
#331154 #541211 #325411 #115454
split-complementary
#331154 #545411 #115412
monochromatic
#0F0519 #140721 #331154 #521B87 #7126BA

Accessibility & contrast

On white

15.57
#331154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331154
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331154#FFFFFF#000000##FFFFFF
##3311541.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#2C2231
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #331154;
/* rgb */ color: rgb(51, 17, 84);
/* oklch */ color: oklch(27.3% 0.114 302.4);
Tailwind
colors: {
  custom: {
    50: '#6e5385',
    500: '#331154',
    950: '#000000',
  },
}
SCSS
$custom: #331154;
$custom-light: #6e5385;
$custom-dark: #000000;
JSON
{
  "hex": "#331154",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 270.448,
    "s": 66.337,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27334,
    "c": 0.11414,
    "h": 302.4
  },
  "luminance": 0.01745
}

Semantic roles & 50–950 ramp

primary
#331154
secondary
#608D34
accent
#E93F93
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020B
muted
#7B787C

Preview Lab

Preview with #331154

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

Preview Lab → · Contrast checker → · Palette generator →

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