#311560#311560

#311560 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.124 H 294.3°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#311560
RGBrgb(49, 21, 96)
HSLhsl(262, 64%, 23%)
HSVhsv(262, 78%, 38%)
CMYKcmyk(49%, 78.1%, 0%, 62.4%)
CIE-LABlab(15.66, 32.14, -39.30)
CIE-LCHlch(15.66, 50.77, 309.28°)
OKLaboklab(28.73% 0.0508 -0.1126)
OKLCHoklch(28.73% 0.124 294.3)
XYZxyz(3.6455, 2.0337, 11.2645)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311560 #446015
analogous
#151E60 #311560 #561560
triadic
#311560 #603115 #156031
tetradic
#311560 #60151E #446015 #156056
square
#311560 #60151E #446015 #156056
split-complementary
#311560 #605615 #1E6015
monochromatic
#0D0519 #170A2E #311560 #4B2092 #642BC4

Accessibility & contrast

On white

14.93
#311560 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311560 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311560
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311560#FFFFFF#000000##FFFFFF
##3115601.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#00265F
Tritanopia (blue-blind)
#232939
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311560;
/* rgb */ color: rgb(49, 21, 96);
/* oklch */ color: oklch(28.7% 0.124 294.3);
Tailwind
colors: {
  custom: {
    50: '#6f558e',
    500: '#311560',
    950: '#000000',
  },
}
SCSS
$custom: #311560;
$custom-light: #6f558e;
$custom-dark: #000000;
JSON
{
  "hex": "#311560",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 96
  },
  "hsl": {
    "h": 262.4,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28732,
    "c": 0.12352,
    "h": 294.3
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#311560
secondary
#74973A
accent
#E741A9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311560

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

Preview Lab → · Contrast checker → · Palette generator →

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