#311543#311543

#311543 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.086 H 309.8°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#311543
RGBrgb(49, 21, 67)
HSLhsl(277, 52%, 17%)
HSVhsv(277, 69%, 26%)
CMYKcmyk(26.9%, 68.7%, 0%, 73.7%)
CIE-LABlab(13.20, 23.79, -23.51)
CIE-LCHlch(13.20, 33.45, 315.33°)
OKLaboklab(26.19% 0.0552 -0.0662)
OKLCHoklch(26.19% 0.086 309.8)
XYZxyz(2.5477, 1.5946, 5.4827)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311543 #274315
analogous
#1A1543 #311543 #43153E
triadic
#311543 #433115 #154331
tetradic
#311543 #431A15 #274315 #153E43
square
#311543 #431A15 #274315 #153E43
split-complementary
#311543 #3E4315 #15431A
monochromatic
#110717 #110717 #311543 #532472 #7532A0

Accessibility & contrast

On white

15.92
#311543 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#311543 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311543
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311543#FFFFFF#000000##FFFFFF
##3115431.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042144
Deuteranopia (green-blind)
#0F2242
Tritanopia (blue-blind)
#2F1E29
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311543;
/* rgb */ color: rgb(49, 21, 67);
/* oklch */ color: oklch(26.2% 0.086 309.8);
Tailwind
colors: {
  custom: {
    50: '#6b5477',
    500: '#311543',
    950: '#000000',
  },
}
SCSS
$custom: #311543;
$custom-light: #6b5477;
$custom-dark: #000000;
JSON
{
  "hex": "#311543",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 67
  },
  "hsl": {
    "h": 276.522,
    "s": 52.273,
    "l": 17.255
  },
  "oklch": {
    "l": 0.26191,
    "c": 0.08621,
    "h": 309.8
  },
  "luminance": 0.01595
}

Semantic roles & 50–950 ramp

primary
#311543
secondary
#537B39
accent
#DC4C84
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070309
muted
#7A787B

Preview Lab

Preview with #311543

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

Preview Lab → · Contrast checker → · Palette generator →

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