#311564#311564

#311564 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.129 H 292.8°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#311564
RGBrgb(49, 21, 100)
HSLhsl(261, 65%, 24%)
HSVhsv(261, 79%, 39%)
CMYKcmyk(51%, 79%, 0%, 60.8%)
CIE-LABlab(16.05, 33.33, -41.31)
CIE-LCHlch(16.05, 53.09, 308.90°)
OKLaboklab(29.12% 0.0497 -0.1185)
OKLCHoklch(29.12% 0.129 292.8)
XYZxyz(3.8344, 2.1093, 12.2592)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311564 #486415
analogous
#152064 #311564 #581564
triadic
#311564 #643115 #156431
tetradic
#311564 #641520 #486415 #156458
square
#311564 #641520 #486415 #156458
split-complementary
#311564 #645815 #206415
monochromatic
#0C0519 #180A31 #311564 #4A2097 #632AC9

Accessibility & contrast

On white

14.77
#311564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311564
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311564#FFFFFF#000000##FFFFFF
##3115641.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311564;
/* rgb */ color: rgb(49, 21, 100);
/* oklch */ color: oklch(29.1% 0.129 292.8);
Tailwind
colors: {
  custom: {
    50: '#6f5691',
    500: '#311564',
    950: '#000000',
  },
}
SCSS
$custom: #311564;
$custom-light: #6f5691;
$custom-dark: #000000;
JSON
{
  "hex": "#311564",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 261.266,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29124,
    "c": 0.12853,
    "h": 292.8
  },
  "luminance": 0.02109
}

Semantic roles & 50–950 ramp

primary
#311564
secondary
#799B3A
accent
#E840AC
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311564

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

Preview Lab → · Contrast checker → · Palette generator →

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