#311583#311583

#311583 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.166 H 283.8°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#311583
RGBrgb(49, 21, 131)
HSLhsl(255, 72%, 30%)
HSVhsv(255, 84%, 51%)
CMYKcmyk(62.6%, 84%, 0%, 48.6%)
CIE-LABlab(19.34, 42.58, -55.92)
CIE-LCHlch(19.34, 70.29, 307.29°)
OKLaboklab(32.4% 0.0396 -0.1612)
OKLCHoklch(32.4% 0.166 283.8)
XYZxyz(5.6303, 2.8276, 21.7174)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311583 #678315
analogous
#153083 #311583 #681583
triadic
#311583 #833115 #158331
tetradic
#311583 #831530 #678315 #158368
square
#311583 #831530 #678315 #158368
split-complementary
#311583 #836815 #308315
monochromatic
#0A041A #1D0D4E #311583 #451DB8 #5F34DE

Accessibility & contrast

On white

13.41
#311583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#311583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311583
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311583#FFFFFF#000000##FFFFFF
##3115831.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003286
Deuteranopia (green-blind)
#002B81
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #311583;
/* rgb */ color: rgb(49, 21, 131);
/* oklch */ color: oklch(32.4% 0.166 283.8);
Tailwind
colors: {
  custom: {
    50: '#7558a8',
    500: '#311583',
    950: '#000000',
  },
}
SCSS
$custom: #311583;
$custom-light: #7558a8;
$custom-dark: #000000;
JSON
{
  "hex": "#311583",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 255.273,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32404,
    "c": 0.16603,
    "h": 283.8
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#311583
secondary
#98B83C
accent
#EF39C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #311583

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

Preview Lab → · Contrast checker → · Palette generator →

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