#331153#331153

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

Color values

HEX#331153
RGBrgb(51, 17, 83)
HSLhsl(271, 66%, 20%)
HSVhsv(271, 80%, 33%)
CMYKcmyk(38.6%, 79.5%, 0%, 67.5%)
CIE-LABlab(14.00, 30.91, -33.26)
CIE-LCHlch(14.00, 45.40, 312.91°)
OKLaboklab(27.24% 0.0615 -0.0947)
OKLCHoklch(27.24% 0.113 303)
XYZxyz(3.1267, 1.7292, 8.3510)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331153 #315311
analogous
#121153 #331153 #531152
triadic
#331153 #533311 #115333
tetradic
#331153 #531211 #315311 #115253
square
#331153 #531211 #315311 #115253
split-complementary
#331153 #525311 #115312
monochromatic
#100519 #140720 #331153 #521B86 #7126B9

Accessibility & contrast

On white

15.60
#331153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #331153
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331153#FFFFFF#000000##FFFFFF
##3311531.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #331153;
/* rgb */ color: rgb(51, 17, 83);
/* oklch */ color: oklch(27.2% 0.113 303.0);
Tailwind
colors: {
  custom: {
    50: '#6e5384',
    500: '#331153',
    950: '#000000',
  },
}
SCSS
$custom: #331153;
$custom-light: #6e5384;
$custom-dark: #000000;
JSON
{
  "hex": "#331153",
  "rgb": {
    "r": 51,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 270.909,
    "s": 66,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27242,
    "c": 0.11294,
    "h": 303
  },
  "luminance": 0.01729
}

Semantic roles & 50–950 ramp

primary
#331153
secondary
#5F8C34
accent
#E93F91
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #331153

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

Preview Lab → · Contrast checker → · Palette generator →

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