#311883#311883

#311883 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.163 H 283.4°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#311883
RGBrgb(49, 24, 131)
HSLhsl(254, 69%, 30%)
HSVhsv(254, 82%, 51%)
CMYKcmyk(62.6%, 81.7%, 0%, 48.6%)
CIE-LABlab(19.82, 41.18, -55.13)
CIE-LCHlch(19.82, 68.82, 306.76°)
OKLaboklab(32.74% 0.0378 -0.159)
OKLCHoklch(32.74% 0.163 283.4)
XYZxyz(5.6887, 2.9445, 21.7369)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311883 #6A8318
analogous
#183483 #311883 #661883
triadic
#311883 #833118 #188331
tetradic
#311883 #831834 #6A8318 #188366
square
#311883 #831834 #6A8318 #188366
split-complementary
#311883 #836618 #348318
monochromatic
#0A051C #1E0F4F #311883 #4421B7 #603ADB

Accessibility & contrast

On white

13.22
#311883 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311883
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311883#FFFFFF#000000##FFFFFF
##3118831.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311883;
/* rgb */ color: rgb(49, 24, 131);
/* oklch */ color: oklch(32.7% 0.163 283.4);
Tailwind
colors: {
  custom: {
    50: '#7559a8',
    500: '#311883',
    950: '#000000',
  },
}
SCSS
$custom: #311883;
$custom-light: #7559a8;
$custom-dark: #000000;
JSON
{
  "hex": "#311883",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 131
  },
  "hsl": {
    "h": 254.019,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32737,
    "c": 0.1634,
    "h": 283.4
  },
  "luminance": 0.02945
}

Semantic roles & 50–950 ramp

primary
#311883
secondary
#9BB740
accent
#EC3CC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311883

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

Preview Lab → · Contrast checker → · Palette generator →

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