#311049#311049

#311049 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.102 H 307.1°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#311049
RGBrgb(49, 16, 73)
HSLhsl(275, 64%, 17%)
HSVhsv(275, 78%, 29%)
CMYKcmyk(32.9%, 78.1%, 0%, 71.4%)
CIE-LABlab(12.64, 28.26, -28.60)
CIE-LCHlch(12.64, 40.21, 314.66°)
OKLaboklab(25.94% 0.0614 -0.0811)
OKLCHoklch(25.94% 0.102 307.1)
XYZxyz(2.6543, 1.5046, 6.4526)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311049 #284910
analogous
#151049 #311049 #491044
triadic
#311049 #493110 #104931
tetradic
#311049 #491510 #284910 #104449
square
#311049 #491510 #284910 #104449
split-complementary
#311049 #444910 #104915
monochromatic
#110619 #110619 #311049 #531B7B #7426AD

Accessibility & contrast

On white

16.14
#311049 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#311049 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311049
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311049#FFFFFF#000000##FFFFFF
##3110491.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#022148
Tritanopia (blue-blind)
#2D1D2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #311049;
/* rgb */ color: rgb(49, 16, 73);
/* oklch */ color: oklch(25.9% 0.102 307.1);
Tailwind
colors: {
  custom: {
    50: '#6c517c',
    500: '#311049',
    950: '#000000',
  },
}
SCSS
$custom: #311049;
$custom-light: #6c517c;
$custom-dark: #000000;
JSON
{
  "hex": "#311049",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 73
  },
  "hsl": {
    "h": 274.737,
    "s": 64.045,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25939,
    "c": 0.10176,
    "h": 307.1
  },
  "luminance": 0.01505
}

Semantic roles & 50–950 ramp

primary
#311049
secondary
#548332
accent
#E74187
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #311049

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

Preview Lab → · Contrast checker → · Palette generator →

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