#311361#311361

#311361 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.127 H 294.4°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#311361
RGBrgb(49, 19, 97)
HSLhsl(263, 67%, 23%)
HSVhsv(263, 80%, 38%)
CMYKcmyk(49.5%, 80.4%, 0%, 62%)
CIE-LABlab(15.39, 33.49, -40.41)
CIE-LCHlch(15.39, 52.48, 309.65°)
OKLaboklab(28.57% 0.0524 -0.1158)
OKLCHoklch(28.57% 0.127 294.4)
XYZxyz(3.6566, 1.9817, 11.4968)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311361 #436113
analogous
#131C61 #311361 #581361
triadic
#311361 #613113 #136131
tetradic
#311361 #61131C #436113 #136158
square
#311361 #61131C #436113 #136158
split-complementary
#311361 #615813 #1C6113
monochromatic
#0D051A #17092E #311361 #4B1D94 #6527C7

Accessibility & contrast

On white

15.04
#311361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#311361 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311361
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311361#FFFFFF#000000##FFFFFF
##3113611.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#232839
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311361;
/* rgb */ color: rgb(49, 19, 97);
/* oklch */ color: oklch(28.6% 0.127 294.4);
Tailwind
colors: {
  custom: {
    50: '#6f548f',
    500: '#311361',
    950: '#000000',
  },
}
SCSS
$custom: #311361;
$custom-light: #6f548f;
$custom-dark: #000000;
JSON
{
  "hex": "#311361",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 263.077,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2857,
    "c": 0.12717,
    "h": 294.4
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#311361
secondary
#739937
accent
#EA3EA8
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311361

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

Preview Lab → · Contrast checker → · Palette generator →

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