#311D92#311D92

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

Color values

HEX#311D92
RGBrgb(49, 29, 146)
HSLhsl(250, 67%, 34%)
HSVhsv(250, 80%, 57%)
CMYKcmyk(66.4%, 80.1%, 0%, 42.7%)
CIE-LABlab(22.33, 43.31, -60.38)
CIE-LCHlch(22.33, 74.30, 305.65°)
OKLaboklab(34.97% 0.0303 -0.1743)
OKLCHoklch(34.97% 0.177 279.9)
XYZxyz(6.8926, 3.6065, 27.5214)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D92 #7E921D
analogous
#1D4492 #311D92 #6C1D92
triadic
#311D92 #92311D #1D9231
tetradic
#311D92 #921D44 #7E921D #1D926C
square
#311D92 #921D44 #7E921D #1D926C
split-complementary
#311D92 #926C1D #44921D
monochromatic
#0F092C #20135F #311D92 #4227C5 #664EDC

Accessibility & contrast

On white

12.20
#311D92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#311D92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D92
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D92#FFFFFF#000000##FFFFFF
##311D921.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003190
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311d92;
/* rgb */ color: rgb(49, 29, 146);
/* oklch */ color: oklch(35.0% 0.177 279.9);
Tailwind
colors: {
  custom: {
    50: '#775db3',
    500: '#311d92',
    950: '#000000',
  },
}
SCSS
$custom: #311d92;
$custom-light: #775db3;
$custom-dark: #000000;
JSON
{
  "hex": "#311d92",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 146
  },
  "hsl": {
    "h": 250.256,
    "s": 66.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3497,
    "c": 0.17692,
    "h": 279.9
  },
  "luminance": 0.03607
}

Semantic roles & 50–950 ramp

primary
#311D92
secondary
#ABBE4C
accent
#EA3ECC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311D92

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

Preview Lab → · Contrast checker → · Palette generator →

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