#311083#311083

#311083 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.170 H 284.4°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#311083
RGBrgb(49, 16, 131)
HSLhsl(257, 78%, 29%)
HSVhsv(257, 88%, 51%)
CMYKcmyk(62.6%, 87.8%, 0%, 48.6%)
CIE-LABlab(18.64, 44.66, -57.09)
CIE-LCHlch(18.64, 72.48, 308.03°)
OKLaboklab(31.92% 0.0422 -0.1645)
OKLCHoklch(31.92% 0.17 284.4)
XYZxyz(5.5474, 2.6619, 21.6898)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311083 #628310
analogous
#102983 #311083 #6B1083
triadic
#311083 #833110 #108331
tetradic
#311083 #831029 #628310 #10836B
square
#311083 #831029 #628310 #10836B
split-complementary
#311083 #836B10 #298310
monochromatic
#0A031B #1D094C #311083 #4517BA #5F29E5

Accessibility & contrast

On white

13.70
#311083 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#311083 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311083
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311083#FFFFFF#000000##FFFFFF
##3110831.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003086
Deuteranopia (green-blind)
#002A81
Tritanopia (blue-blind)
#00354C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311083;
/* rgb */ color: rgb(49, 16, 131);
/* oklch */ color: oklch(31.9% 0.170 284.4);
Tailwind
colors: {
  custom: {
    50: '#7555a8',
    500: '#311083',
    950: '#000000',
  },
}
SCSS
$custom: #311083;
$custom-light: #7555a8;
$custom-dark: #000000;
JSON
{
  "hex": "#311083",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 131
  },
  "hsl": {
    "h": 257.217,
    "s": 78.231,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31921,
    "c": 0.16988,
    "h": 284.4
  },
  "luminance": 0.02662
}

Semantic roles & 50–950 ramp

primary
#311083
secondary
#93B936
accent
#F533BD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #311083

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

Preview Lab → · Contrast checker → · Palette generator →

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