#311984#311984

#311984 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.164 H 283.0°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#311984
RGBrgb(49, 25, 132)
HSLhsl(253, 68%, 31%)
HSVhsv(253, 81%, 52%)
CMYKcmyk(62.9%, 81.1%, 0%, 48.2%)
CIE-LABlab(20.10, 41.00, -55.30)
CIE-LCHlch(20.10, 68.84, 306.55°)
OKLaboklab(32.96% 0.0369 -0.1595)
OKLCHoklch(32.96% 0.164 283)
XYZxyz(5.7778, 3.0138, 22.1026)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311984 #6C8419
analogous
#193684 #311984 #661984
triadic
#311984 #843119 #198431
tetradic
#311984 #841936 #6C8419 #198466
square
#311984 #841936 #6C8419 #198466
split-complementary
#311984 #846619 #368419
monochromatic
#0B061D #1E0F51 #311984 #4423B7 #603DDA

Accessibility & contrast

On white

13.10
#311984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#311984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311984
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311984#FFFFFF#000000##FFFFFF
##3119841.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311984;
/* rgb */ color: rgb(49, 25, 132);
/* oklch */ color: oklch(33.0% 0.164 283.0);
Tailwind
colors: {
  custom: {
    50: '#755aa9',
    500: '#311984',
    950: '#000000',
  },
}
SCSS
$custom: #311984;
$custom-light: #755aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#311984",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 132
  },
  "hsl": {
    "h": 253.458,
    "s": 68.153,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.16368,
    "h": 283
  },
  "luminance": 0.03014
}

Semantic roles & 50–950 ramp

primary
#311984
secondary
#9DB841
accent
#EB3DC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311984

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

Preview Lab → · Contrast checker → · Palette generator →

#311984 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva