#311561#311561

#311561 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.8% C 0.125 H 293.9°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#311561
RGBrgb(49, 21, 97)
HSLhsl(262, 64%, 23%)
HSVhsv(262, 78%, 38%)
CMYKcmyk(49.5%, 78.4%, 0%, 62%)
CIE-LABlab(15.76, 32.44, -39.80)
CIE-LCHlch(15.76, 51.35, 309.18°)
OKLaboklab(28.83% 0.0505 -0.1141)
OKLCHoklch(28.83% 0.125 293.9)
XYZxyz(3.6919, 2.0523, 11.5085)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311561 #456115
analogous
#151F61 #311561 #571561
triadic
#311561 #613115 #156131
tetradic
#311561 #61151F #456115 #156157
square
#311561 #61151F #456115 #156157
split-complementary
#311561 #615715 #1F6115
monochromatic
#0D0519 #180A2F #311561 #4A2093 #642BC6

Accessibility & contrast

On white

14.89
#311561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311561
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311561#FFFFFF#000000##FFFFFF
##3115611.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#23293A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311561;
/* rgb */ color: rgb(49, 21, 97);
/* oklch */ color: oklch(28.8% 0.125 293.9);
Tailwind
colors: {
  custom: {
    50: '#6f558f',
    500: '#311561',
    950: '#000000',
  },
}
SCSS
$custom: #311561;
$custom-light: #6f558f;
$custom-dark: #000000;
JSON
{
  "hex": "#311561",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 262.105,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28829,
    "c": 0.12477,
    "h": 293.9
  },
  "luminance": 0.02052
}

Semantic roles & 50–950 ramp

primary
#311561
secondary
#75983A
accent
#E740AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311561

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

Preview Lab → · Contrast checker → · Palette generator →

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