#311A95#311A95

#311A95 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.183 H 279.7°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#311A95
RGBrgb(49, 26, 149)
HSLhsl(251, 70%, 34%)
HSVhsv(251, 83%, 58%)
CMYKcmyk(67.1%, 82.6%, 0%, 41.6%)
CIE-LABlab(22.16, 45.67, -62.50)
CIE-LCHlch(22.16, 77.41, 306.16°)
OKLaboklab(34.96% 0.0309 -0.1804)
OKLCHoklch(34.96% 0.183 279.7)
XYZxyz(7.0591, 3.5611, 28.7433)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A95 #7E951A
analogous
#1A4095 #311A95 #6F1A95
triadic
#311A95 #95311A #1A9531
tetradic
#311A95 #951A40 #7E951A #1A956F
square
#311A95 #951A40 #7E951A #1A956F
split-complementary
#311A95 #956F1A #40951A
monochromatic
#0F082D #201161 #311A95 #4223C9 #664ADF

Accessibility & contrast

On white

12.26
#311A95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#311A95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A95
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A95#FFFFFF#000000##FFFFFF
##311A951.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#003093
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311a95;
/* rgb */ color: rgb(49, 26, 149);
/* oklch */ color: oklch(35.0% 0.183 279.7);
Tailwind
colors: {
  custom: {
    50: '#785bb5',
    500: '#311a95',
    950: '#000000',
  },
}
SCSS
$custom: #311a95;
$custom-light: #785bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#311a95",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 149
  },
  "hsl": {
    "h": 251.22,
    "s": 70.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34957,
    "c": 0.18308,
    "h": 279.7
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#311A95
secondary
#ABC14A
accent
#ED3BCC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311A95

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

Preview Lab → · Contrast checker → · Palette generator →

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