#311046#311046

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

Color values

HEX#311046
RGBrgb(49, 16, 70)
HSLhsl(277, 63%, 17%)
HSVhsv(277, 77%, 27%)
CMYKcmyk(30%, 77.1%, 0%, 72.5%)
CIE-LABlab(12.39, 27.46, -26.91)
CIE-LCHlch(12.39, 38.45, 315.57°)
OKLaboklab(25.68% 0.0619 -0.0762)
OKLCHoklch(25.68% 0.098 309.1)
XYZxyz(2.5572, 1.4658, 5.9414)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311046 #254610
analogous
#161046 #311046 #461040
triadic
#311046 #463110 #104631
tetradic
#311046 #461610 #254610 #104046
square
#311046 #461610 #254610 #104046
split-complementary
#311046 #404610 #104616
monochromatic
#110619 #110619 #311046 #541B78 #7727AA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##311046#FFFFFF#000000##FFFFFF
##3110461.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)
#001F48
Deuteranopia (green-blind)
#062145
Tritanopia (blue-blind)
#2E1C29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #311046;
/* rgb */ color: rgb(49, 16, 70);
/* oklch */ color: oklch(25.7% 0.098 309.1);
Tailwind
colors: {
  custom: {
    50: '#6c517a',
    500: '#311046',
    950: '#000000',
  },
}
SCSS
$custom: #311046;
$custom-light: #6c517a;
$custom-dark: #000000;
JSON
{
  "hex": "#311046",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 70
  },
  "hsl": {
    "h": 276.667,
    "s": 62.791,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25683,
    "c": 0.09814,
    "h": 309.1
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#311046
secondary
#508032
accent
#E64282
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #311046

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

Preview Lab → · Contrast checker → · Palette generator →

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