#311A97#311A97

#311A97 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.185 H 279.4°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#311A97
RGBrgb(49, 26, 151)
HSLhsl(251, 71%, 35%)
HSVhsv(251, 83%, 59%)
CMYKcmyk(67.5%, 82.8%, 0%, 40.8%)
CIE-LABlab(22.39, 46.27, -63.35)
CIE-LCHlch(22.39, 78.45, 306.14°)
OKLaboklab(35.18% 0.0303 -0.1829)
OKLCHoklch(35.18% 0.185 279.4)
XYZxyz(7.2201, 3.6255, 29.5915)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A97 #80971A
analogous
#1A4297 #311A97 #701A97
triadic
#311A97 #97311A #1A9731
tetradic
#311A97 #971A42 #80971A #1A9770
square
#311A97 #971A42 #80971A #1A9770
split-complementary
#311A97 #97701A #42971A
monochromatic
#0F082F #201163 #311A97 #4223CB #674BE0

Accessibility & contrast

On white

12.17
#311A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#311A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A97
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A97#FFFFFF#000000##FFFFFF
##311A971.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311a97;
/* rgb */ color: rgb(49, 26, 151);
/* oklch */ color: oklch(35.2% 0.185 279.4);
Tailwind
colors: {
  custom: {
    50: '#795cb7',
    500: '#311a97',
    950: '#000000',
  },
}
SCSS
$custom: #311a97;
$custom-light: #795cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#311a97",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 251.04,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35182,
    "c": 0.18542,
    "h": 279.4
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#311A97
secondary
#ACC24B
accent
#ED3ACC
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311A97

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

Preview Lab → · Contrast checker → · Palette generator →

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