#311581#311581

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

Color values

HEX#311581
RGBrgb(49, 21, 129)
HSLhsl(256, 72%, 29%)
HSVhsv(256, 84%, 51%)
CMYKcmyk(62%, 83.7%, 0%, 49.4%)
CIE-LABlab(19.11, 41.99, -55.03)
CIE-LCHlch(19.11, 69.22, 307.35°)
OKLaboklab(32.18% 0.0403 -0.1586)
OKLCHoklch(32.18% 0.164 284.3)
XYZxyz(5.4960, 2.7739, 21.0104)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311581 #658115
analogous
#152F81 #311581 #671581
triadic
#311581 #813115 #158131
tetradic
#311581 #81152F #658115 #158167
square
#311581 #81152F #658115 #158167
split-complementary
#311581 #816715 #2F8115
monochromatic
#0A041A #1D0C4C #311581 #451EB6 #5F33DE

Accessibility & contrast

On white

13.51
#311581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311581
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311581#FFFFFF#000000##FFFFFF
##3115811.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311581;
/* rgb */ color: rgb(49, 21, 129);
/* oklch */ color: oklch(32.2% 0.164 284.3);
Tailwind
colors: {
  custom: {
    50: '#7557a7',
    500: '#311581',
    950: '#000000',
  },
}
SCSS
$custom: #311581;
$custom-light: #7557a7;
$custom-dark: #000000;
JSON
{
  "hex": "#311581",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 255.556,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32182,
    "c": 0.16368,
    "h": 284.3
  },
  "luminance": 0.02774
}

Semantic roles & 50–950 ramp

primary
#311581
secondary
#96B63C
accent
#EF39C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #311581

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

Preview Lab → · Contrast checker → · Palette generator →

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