#311E76#311E76

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

Color values

HEX#311E76
RGBrgb(49, 30, 118)
HSLhsl(253, 59%, 29%)
HSVhsv(253, 75%, 46%)
CMYKcmyk(58.5%, 74.6%, 0%, 53.7%)
CIE-LABlab(19.59, 33.92, -47.23)
CIE-LCHlch(19.59, 58.15, 305.69°)
OKLaboklab(32.17% 0.037 -0.1359)
OKLCHoklch(32.17% 0.141 285.2)
XYZxyz(4.9999, 2.8892, 17.4302)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E76 #63761E
analogous
#1E3776 #311E76 #5D1E76
triadic
#311E76 #76311E #1E7631
tetradic
#311E76 #761E37 #63761E #1E765D
square
#311E76 #761E37 #63761E #1E765D
split-complementary
#311E76 #765D1E #37761E
monochromatic
#0A0618 #1D1245 #311E76 #452AA7 #5F40CE

Accessibility & contrast

On white

13.31
#311E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#311E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E76
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E76#FFFFFF#000000##FFFFFF
##311E761.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#103648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #311e76;
/* rgb */ color: rgb(49, 30, 118);
/* oklch */ color: oklch(32.2% 0.141 285.2);
Tailwind
colors: {
  custom: {
    50: '#725c9e',
    500: '#311e76',
    950: '#000000',
  },
}
SCSS
$custom: #311e76;
$custom-light: #725c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#311e76",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 252.955,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32171,
    "c": 0.14085,
    "h": 285.2
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

primary
#311E76
secondary
#94AA46
accent
#E345C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311E76

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

Preview Lab → · Contrast checker → · Palette generator →

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