#311983#311983

#311983 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.162 H 283.2°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#311983
RGBrgb(49, 25, 131)
HSLhsl(254, 68%, 31%)
HSVhsv(254, 81%, 51%)
CMYKcmyk(62.6%, 80.9%, 0%, 48.6%)
CIE-LABlab(19.99, 40.69, -54.85)
CIE-LCHlch(19.99, 68.30, 306.57°)
OKLaboklab(32.86% 0.0372 -0.1582)
OKLCHoklch(32.86% 0.162 283.2)
XYZxyz(5.7097, 2.9865, 21.7439)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311983 #6B8319
analogous
#193683 #311983 #661983
triadic
#311983 #833119 #198331
tetradic
#311983 #831936 #6B8319 #198366
square
#311983 #831936 #6B8319 #198366
split-complementary
#311983 #836619 #368319
monochromatic
#0B051C #1E0F50 #311983 #4423B6 #603DDA

Accessibility & contrast

On white

13.15
#311983 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311983
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311983#FFFFFF#000000##FFFFFF
##3119831.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311983;
/* rgb */ color: rgb(49, 25, 131);
/* oklch */ color: oklch(32.9% 0.162 283.2);
Tailwind
colors: {
  custom: {
    50: '#755aa8',
    500: '#311983',
    950: '#000000',
  },
}
SCSS
$custom: #311983;
$custom-light: #755aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#311983",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 131
  },
  "hsl": {
    "h": 253.585,
    "s": 67.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32855,
    "c": 0.16248,
    "h": 283.2
  },
  "luminance": 0.02987
}

Semantic roles & 50–950 ramp

primary
#311983
secondary
#9CB741
accent
#EB3DC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311983

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

Preview Lab → · Contrast checker → · Palette generator →

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