#311641#311641

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

Color values

HEX#311641
RGBrgb(49, 22, 65)
HSLhsl(278, 49%, 17%)
HSVhsv(278, 66%, 25%)
CMYKcmyk(24.6%, 66.2%, 0%, 74.5%)
CIE-LABlab(13.28, 22.63, -21.98)
CIE-LCHlch(13.28, 31.55, 315.84°)
OKLaboklab(26.21% 0.0536 -0.0617)
OKLCHoklch(26.21% 0.082 311)
XYZxyz(2.5075, 1.6085, 5.1784)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311641 #264116
analogous
#1C1641 #311641 #41163C
triadic
#311641 #413116 #164131
tetradic
#311641 #411C16 #264116 #163C41
square
#311641 #411C16 #264116 #163C41
split-complementary
#311641 #3C4116 #16411C
monochromatic
#110817 #110817 #311641 #53256F #76359C

Accessibility & contrast

On white

15.89
#311641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311641
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311641#FFFFFF#000000##FFFFFF
##3116411.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082142
Deuteranopia (green-blind)
#122340
Tritanopia (blue-blind)
#2F1E29
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311641;
/* rgb */ color: rgb(49, 22, 65);
/* oklch */ color: oklch(26.2% 0.082 311.0);
Tailwind
colors: {
  custom: {
    50: '#6b5576',
    500: '#311641',
    950: '#000000',
  },
}
SCSS
$custom: #311641;
$custom-light: #6b5576;
$custom-dark: #000000;
JSON
{
  "hex": "#311641",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 65
  },
  "hsl": {
    "h": 277.674,
    "s": 49.425,
    "l": 17.059
  },
  "oklch": {
    "l": 0.26207,
    "c": 0.08178,
    "h": 311
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#311641
secondary
#51783A
accent
#D94F82
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#070308
muted
#7A787B

Preview Lab

Preview with #311641

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

Preview Lab → · Contrast checker → · Palette generator →

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