#311882#311882

#311882 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.162 H 283.6°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#311882
RGBrgb(49, 24, 130)
HSLhsl(254, 69%, 30%)
HSVhsv(254, 82%, 51%)
CMYKcmyk(62.3%, 81.5%, 0%, 49%)
CIE-LABlab(19.71, 40.88, -54.68)
CIE-LCHlch(19.71, 68.27, 306.78°)
OKLaboklab(32.63% 0.0382 -0.1576)
OKLCHoklch(32.63% 0.162 283.6)
XYZxyz(5.6213, 2.9176, 21.3817)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311882 #698218
analogous
#183482 #311882 #661882
triadic
#311882 #823118 #188231
tetradic
#311882 #821834 #698218 #188266
square
#311882 #821834 #698218 #188266
split-complementary
#311882 #826618 #348218
monochromatic
#0A051B #1E0E4E #311882 #4422B6 #603ADB

Accessibility & contrast

On white

13.26
#311882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#311882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311882
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311882#FFFFFF#000000##FFFFFF
##3118821.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311882;
/* rgb */ color: rgb(49, 24, 130);
/* oklch */ color: oklch(32.6% 0.162 283.6);
Tailwind
colors: {
  custom: {
    50: '#7559a7',
    500: '#311882',
    950: '#000000',
  },
}
SCSS
$custom: #311882;
$custom-light: #7559a7;
$custom-dark: #000000;
JSON
{
  "hex": "#311882",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 254.151,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32628,
    "c": 0.16219,
    "h": 283.6
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#311882
secondary
#9AB640
accent
#EC3CC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311882

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

Preview Lab → · Contrast checker → · Palette generator →

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