#311A94#311A94

#311A94 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.182 H 279.9°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#311A94
RGBrgb(49, 26, 148)
HSLhsl(251, 70%, 34%)
HSVhsv(251, 82%, 58%)
CMYKcmyk(66.9%, 82.4%, 0%, 42%)
CIE-LABlab(22.05, 45.37, -62.07)
CIE-LCHlch(22.05, 76.88, 306.17°)
OKLaboklab(34.85% 0.0312 -0.1792)
OKLCHoklch(34.85% 0.182 279.9)
XYZxyz(6.9796, 3.5293, 28.3246)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A94 #7D941A
analogous
#1A4094 #311A94 #6E1A94
triadic
#311A94 #94311A #1A9431
tetradic
#311A94 #941A40 #7D941A #1A946E
square
#311A94 #941A40 #7D941A #1A946E
split-complementary
#311A94 #946E1A #40941A
monochromatic
#0F082C #201160 #311A94 #4223C8 #6649DF

Accessibility & contrast

On white

12.31
#311A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311A94
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A94#FFFFFF#000000##FFFFFF
##311A941.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311a94;
/* rgb */ color: rgb(49, 26, 148);
/* oklch */ color: oklch(34.8% 0.182 279.9);
Tailwind
colors: {
  custom: {
    50: '#785bb5',
    500: '#311a94',
    950: '#000000',
  },
}
SCSS
$custom: #311a94;
$custom-light: #785bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#311a94",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 148
  },
  "hsl": {
    "h": 251.311,
    "s": 70.115,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34845,
    "c": 0.1819,
    "h": 279.9
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#311A94
secondary
#AAC149
accent
#ED3BCB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311A94

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

Preview Lab → · Contrast checker → · Palette generator →

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