#311563#311563

#311563 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.127 H 293.1°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#311563
RGBrgb(49, 21, 99)
HSLhsl(262, 65%, 24%)
HSVhsv(262, 79%, 39%)
CMYKcmyk(50.5%, 78.8%, 0%, 61.2%)
CIE-LABlab(15.95, 33.04, -40.81)
CIE-LCHlch(15.95, 52.51, 308.99°)
OKLaboklab(29.03% 0.05 -0.117)
OKLCHoklch(29.03% 0.127 293.1)
XYZxyz(3.7863, 2.0900, 12.0059)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311563 #476315
analogous
#152063 #311563 #581563
triadic
#311563 #633115 #156331
tetradic
#311563 #631520 #476315 #156358
square
#311563 #631520 #476315 #156358
split-complementary
#311563 #635815 #206315
monochromatic
#0C0519 #180A31 #311563 #4A2095 #632AC8

Accessibility & contrast

On white

14.81
#311563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#311563 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311563
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311563#FFFFFF#000000##FFFFFF
##3115631.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#222A3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311563;
/* rgb */ color: rgb(49, 21, 99);
/* oklch */ color: oklch(29.0% 0.127 293.1);
Tailwind
colors: {
  custom: {
    50: '#6f5590',
    500: '#311563',
    950: '#000000',
  },
}
SCSS
$custom: #311563;
$custom-light: #6f5590;
$custom-dark: #000000;
JSON
{
  "hex": "#311563",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 261.538,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29025,
    "c": 0.12728,
    "h": 293.1
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#311563
secondary
#779A3A
accent
#E840AC
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #311563

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

Preview Lab → · Contrast checker → · Palette generator →

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