#311C79#311C79

#311C79 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.147 H 285.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#311C79
RGBrgb(49, 28, 121)
HSLhsl(254, 62%, 29%)
HSVhsv(254, 77%, 47%)
CMYKcmyk(59.5%, 76.9%, 0%, 52.5%)
CIE-LABlab(19.49, 36.01, -49.32)
CIE-LCHlch(19.49, 61.07, 306.13°)
OKLaboklab(32.19% 0.0379 -0.142)
OKLCHoklch(32.19% 0.147 285)
XYZxyz(5.1320, 2.8636, 18.3678)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C79 #64791C
analogous
#1C3679 #311C79 #601C79
triadic
#311C79 #79311C #1C7931
tetradic
#311C79 #791C36 #64791C #1C7960
square
#311C79 #791C36 #64791C #1C7960
split-complementary
#311C79 #79601C #36791C
monochromatic
#0A0619 #1D1047 #311C79 #4528AB #5F3DD2

Accessibility & contrast

On white

13.35
#311C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#311C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C79
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C79#FFFFFF#000000##FFFFFF
##311C791.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#0B3649
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #311c79;
/* rgb */ color: rgb(49, 28, 121);
/* oklch */ color: oklch(32.2% 0.147 285.0);
Tailwind
colors: {
  custom: {
    50: '#725ba1',
    500: '#311c79',
    950: '#000000',
  },
}
SCSS
$custom: #311c79;
$custom-light: #725ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#311c79",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 253.548,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32188,
    "c": 0.14701,
    "h": 285
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#311C79
secondary
#95AD44
accent
#E542C1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311C79

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

Preview Lab → · Contrast checker → · Palette generator →

#311C79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva