#311580#311580

#311580 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.1% C 0.162 H 284.5°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#311580
RGBrgb(49, 21, 128)
HSLhsl(256, 72%, 29%)
HSVhsv(256, 84%, 50%)
CMYKcmyk(61.7%, 83.6%, 0%, 49.8%)
CIE-LABlab(19.00, 41.70, -54.58)
CIE-LCHlch(19.00, 68.68, 307.38°)
OKLaboklab(32.07% 0.0407 -0.1573)
OKLCHoklch(32.07% 0.162 284.5)
XYZxyz(5.4299, 2.7475, 20.6621)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311580 #648015
analogous
#152F80 #311580 #671580
triadic
#311580 #803115 #158031
tetradic
#311580 #80152F #648015 #158067
square
#311580 #80152F #648015 #158067
split-complementary
#311580 #806715 #2F8015
monochromatic
#0A041A #1D0C4B #311580 #451EB5 #5F32DD

Accessibility & contrast

On white

13.55
#311580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#311580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311580
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311580#FFFFFF#000000##FFFFFF
##3115801.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.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: #311580;
/* rgb */ color: rgb(49, 21, 128);
/* oklch */ color: oklch(32.1% 0.162 284.5);
Tailwind
colors: {
  custom: {
    50: '#7457a6',
    500: '#311580',
    950: '#000000',
  },
}
SCSS
$custom: #311580;
$custom-light: #7457a6;
$custom-dark: #000000;
JSON
{
  "hex": "#311580",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 255.701,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32072,
    "c": 0.16249,
    "h": 284.5
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#311580
secondary
#95B53C
accent
#EF39BF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #311580

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

Preview Lab → · Contrast checker → · Palette generator →

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