#311B76#311B76

#311B76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.144 H 285.9°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#311B76
RGBrgb(49, 27, 118)
HSLhsl(255, 63%, 28%)
HSVhsv(255, 77%, 46%)
CMYKcmyk(58.5%, 77.1%, 0%, 53.7%)
CIE-LABlab(18.99, 35.62, -48.22)
CIE-LCHlch(18.99, 59.95, 306.45°)
OKLaboklab(31.74% 0.0395 -0.1388)
OKLCHoklch(31.74% 0.144 285.9)
XYZxyz(4.9276, 2.7446, 17.4061)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B76 #60761B
analogous
#1B3276 #311B76 #5E1B76
triadic
#311B76 #76311B #1B7631
tetradic
#311B76 #761B32 #60761B #1B765E
square
#311B76 #761B32 #60761B #1B765E
split-complementary
#311B76 #765E1B #32761B
monochromatic
#0A0619 #1C1044 #311B76 #4626A8 #5E3AD2

Accessibility & contrast

On white

13.56
#311B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#311B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B76
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B76#FFFFFF#000000##FFFFFF
##311B761.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#103447
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311b76;
/* rgb */ color: rgb(49, 27, 118);
/* oklch */ color: oklch(31.7% 0.144 285.9);
Tailwind
colors: {
  custom: {
    50: '#725a9e',
    500: '#311b76',
    950: '#000000',
  },
}
SCSS
$custom: #311b76;
$custom-light: #725a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#311b76",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 118
  },
  "hsl": {
    "h": 254.505,
    "s": 62.759,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31744,
    "c": 0.14431,
    "h": 285.9
  },
  "luminance": 0.02745
}

Semantic roles & 50–950 ramp

primary
#311B76
secondary
#91AA42
accent
#E642BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #311B76

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

Preview Lab → · Contrast checker → · Palette generator →

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