#311680#311680

#311680 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.162 H 284.4°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#311680
RGBrgb(49, 22, 128)
HSLhsl(255, 71%, 29%)
HSVhsv(255, 83%, 50%)
CMYKcmyk(61.7%, 82.8%, 0%, 49.8%)
CIE-LABlab(19.16, 41.23, -54.32)
CIE-LCHlch(19.16, 68.20, 307.20°)
OKLaboklab(32.18% 0.0401 -0.1566)
OKLCHoklch(32.18% 0.162 284.4)
XYZxyz(5.4486, 2.7849, 20.6683)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311680 #658016
analogous
#163080 #311680 #661680
triadic
#311680 #803116 #168031
tetradic
#311680 #801630 #658016 #168066
square
#311680 #801630 #658016 #168066
split-complementary
#311680 #806616 #308016
monochromatic
#0A041A #1D0D4C #311680 #451FB4 #5F34DC

Accessibility & contrast

On white

13.49
#311680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#311680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311680
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311680#FFFFFF#000000##FFFFFF
##3116801.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311680;
/* rgb */ color: rgb(49, 22, 128);
/* oklch */ color: oklch(32.2% 0.162 284.4);
Tailwind
colors: {
  custom: {
    50: '#7458a6',
    500: '#311680',
    950: '#000000',
  },
}
SCSS
$custom: #311680;
$custom-light: #7458a6;
$custom-dark: #000000;
JSON
{
  "hex": "#311680",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 255.283,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32181,
    "c": 0.16162,
    "h": 284.4
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#311680
secondary
#96B53D
accent
#ED3AC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #311680

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

Preview Lab → · Contrast checker → · Palette generator →

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