#311556#311556

#311556 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.111 H 298.6°. Best body text is #FFFFFF at 15.30:1 contrast (WCAG AA passes).

Color values

HEX#311556
RGBrgb(49, 21, 86)
HSLhsl(266, 61%, 21%)
HSVhsv(266, 76%, 34%)
CMYKcmyk(43%, 75.6%, 0%, 66.3%)
CIE-LABlab(14.74, 29.18, -34.09)
CIE-LCHlch(14.74, 44.88, 310.56°)
OKLaboklab(27.79% 0.0531 -0.0973)
OKLCHoklch(27.79% 0.111 298.6)
XYZxyz(3.2141, 1.8611, 8.9922)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311556 #3A5615
analogous
#151956 #311556 #511556
triadic
#311556 #563115 #155631
tetradic
#311556 #561519 #3A5615 #155651
square
#311556 #561519 #3A5615 #155651
split-complementary
#311556 #565115 #195615
monochromatic
#0E0619 #150925 #311556 #4D2187 #692DB8

Accessibility & contrast

On white

15.30
#311556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#311556 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311556
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311556#FFFFFF#000000##FFFFFF
##3115561.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002558
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#282533
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311556;
/* rgb */ color: rgb(49, 21, 86);
/* oklch */ color: oklch(27.8% 0.111 298.6);
Tailwind
colors: {
  custom: {
    50: '#6d5586',
    500: '#311556',
    950: '#000000',
  },
}
SCSS
$custom: #311556;
$custom-light: #6d5586;
$custom-dark: #000000;
JSON
{
  "hex": "#311556",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 265.846,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27791,
    "c": 0.11084,
    "h": 298.6
  },
  "luminance": 0.01861
}

Semantic roles & 50–950 ramp

primary
#311556
secondary
#698E39
accent
#E4449F
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311556

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

Preview Lab → · Contrast checker → · Palette generator →

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