#311982#311982

#311982 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.161 H 283.5°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#311982
RGBrgb(49, 25, 130)
HSLhsl(254, 68%, 30%)
HSVhsv(254, 81%, 51%)
CMYKcmyk(62.3%, 80.8%, 0%, 49%)
CIE-LABlab(19.88, 40.39, -54.40)
CIE-LCHlch(19.88, 67.75, 306.59°)
OKLaboklab(32.75% 0.0375 -0.1568)
OKLCHoklch(32.75% 0.161 283.5)
XYZxyz(5.6423, 2.9596, 21.3887)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311982 #6A8219
analogous
#193682 #311982 #651982
triadic
#311982 #823119 #198231
tetradic
#311982 #821936 #6A8219 #198265
square
#311982 #821936 #6A8219 #198265
split-complementary
#311982 #826519 #368219
monochromatic
#0A051B #1E0F4F #311982 #4423B5 #603CD9

Accessibility & contrast

On white

13.19
#311982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#311982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311982
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311982#FFFFFF#000000##FFFFFF
##3119821.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311982;
/* rgb */ color: rgb(49, 25, 130);
/* oklch */ color: oklch(32.7% 0.161 283.5);
Tailwind
colors: {
  custom: {
    50: '#745aa7',
    500: '#311982',
    950: '#000000',
  },
}
SCSS
$custom: #311982;
$custom-light: #745aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#311982",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 253.714,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32747,
    "c": 0.16126,
    "h": 283.5
  },
  "luminance": 0.0296
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311982

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

Preview Lab → · Contrast checker → · Palette generator →

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