#311241#311241

#311241 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.089 H 312.2°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#311241
RGBrgb(49, 18, 65)
HSLhsl(280, 57%, 16%)
HSVhsv(280, 72%, 25%)
CMYKcmyk(24.6%, 72.3%, 0%, 74.5%)
CIE-LABlab(12.40, 25.03, -23.39)
CIE-LCHlch(12.40, 34.26, 316.94°)
OKLaboklab(25.57% 0.0596 -0.0659)
OKLCHoklch(25.57% 0.089 312.2)
XYZxyz(2.4369, 1.4673, 5.1548)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311241 #224112
analogous
#1A1241 #311241 #41123A
triadic
#311241 #413112 #124131
tetradic
#311241 #411A12 #224112 #123A41
square
#311241 #411A12 #224112 #123A41
split-complementary
#311241 #3A4112 #12411A
monochromatic
#120718 #120718 #311241 #551F71 #792DA1

Accessibility & contrast

On white

16.24
#311241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#311241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311241
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311241#FFFFFF#000000##FFFFFF
##3112411.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011F42
Deuteranopia (green-blind)
#0E2140
Tritanopia (blue-blind)
#2F1B27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #311241;
/* rgb */ color: rgb(49, 18, 65);
/* oklch */ color: oklch(25.6% 0.089 312.2);
Tailwind
colors: {
  custom: {
    50: '#6b5276',
    500: '#311241',
    950: '#000000',
  },
}
SCSS
$custom: #311241;
$custom-light: #6b5276;
$custom-dark: #000000;
JSON
{
  "hex": "#311241",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 65
  },
  "hsl": {
    "h": 279.574,
    "s": 56.627,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25565,
    "c": 0.08883,
    "h": 312.2
  },
  "luminance": 0.01467
}

Semantic roles & 50–950 ramp

primary
#311241
secondary
#4C7A35
accent
#E0487C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #311241

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

Preview Lab → · Contrast checker → · Palette generator →

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