#311051#311051

#311051 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.111 H 302.5°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#311051
RGBrgb(49, 16, 81)
HSLhsl(270, 67%, 19%)
HSVhsv(270, 80%, 32%)
CMYKcmyk(39.5%, 80.2%, 0%, 68.2%)
CIE-LABlab(13.34, 30.44, -32.98)
CIE-LCHlch(13.34, 44.88, 312.71°)
OKLaboklab(26.66% 0.0598 -0.094)
OKLCHoklch(26.66% 0.111 302.5)
XYZxyz(2.9368, 1.6176, 7.9405)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311051 #305110
analogous
#111051 #311051 #511051
triadic
#311051 #513110 #105131
tetradic
#311051 #511110 #305110 #105151
square
#311051 #511110 #305110 #105151
split-complementary
#311051 #515110 #105111
monochromatic
#0F051A #12061E #311051 #501A84 #6F24B7

Accessibility & contrast

On white

15.87
#311051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311051
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311051#FFFFFF#000000##FFFFFF
##3110511.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#2A202F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311051;
/* rgb */ color: rgb(49, 16, 81);
/* oklch */ color: oklch(26.7% 0.111 302.5);
Tailwind
colors: {
  custom: {
    50: '#6d5282',
    500: '#311051',
    950: '#000000',
  },
}
SCSS
$custom: #311051;
$custom-light: #6d5282;
$custom-dark: #000000;
JSON
{
  "hex": "#311051",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 270.462,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26655,
    "c": 0.1114,
    "h": 302.5
  },
  "luminance": 0.01618
}

Semantic roles & 50–950 ramp

primary
#311051
secondary
#5E8B32
accent
#EA3E93
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #311051

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

Preview Lab → · Contrast checker → · Palette generator →

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