#311780#311780

#311780 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.161 H 284.2°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#311780
RGBrgb(49, 23, 128)
HSLhsl(255, 70%, 30%)
HSVhsv(255, 82%, 50%)
CMYKcmyk(61.7%, 82%, 0%, 49.8%)
CIE-LABlab(19.32, 40.76, -54.05)
CIE-LCHlch(19.32, 67.70, 307.02°)
OKLaboklab(32.3% 0.0395 -0.1558)
OKLCHoklch(32.3% 0.161 284.2)
XYZxyz(5.4681, 2.8239, 20.6748)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311780 #668017
analogous
#173280 #311780 #661780
triadic
#311780 #803117 #178031
tetradic
#311780 #801732 #668017 #178066
square
#311780 #801732 #668017 #178066
split-complementary
#311780 #806617 #328017
monochromatic
#0A051A #1D0E4C #311780 #4520B4 #5F36DB

Accessibility & contrast

On white

13.42
#311780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311780
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311780#FFFFFF#000000##FFFFFF
##3117801.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003283
Deuteranopia (green-blind)
#002B7E
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #311780;
/* rgb */ color: rgb(49, 23, 128);
/* oklch */ color: oklch(32.3% 0.161 284.2);
Tailwind
colors: {
  custom: {
    50: '#7458a6',
    500: '#311780',
    950: '#000000',
  },
}
SCSS
$custom: #311780;
$custom-light: #7458a6;
$custom-dark: #000000;
JSON
{
  "hex": "#311780",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 254.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32295,
    "c": 0.16072,
    "h": 284.2
  },
  "luminance": 0.02824
}

Semantic roles & 50–950 ramp

primary
#311780
secondary
#97B43E
accent
#EC3BC1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311780

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

Preview Lab → · Contrast checker → · Palette generator →

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