#311056#311056

#311056 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.117 H 299.9°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#311056
RGBrgb(49, 16, 86)
HSLhsl(268, 69%, 20%)
HSVhsv(268, 81%, 34%)
CMYKcmyk(43%, 81.4%, 0%, 66.3%)
CIE-LABlab(13.80, 31.84, -35.63)
CIE-LCHlch(13.80, 47.78, 311.78°)
OKLaboklab(27.13% 0.0585 -0.1018)
OKLCHoklch(27.13% 0.117 299.9)
XYZxyz(3.1312, 1.6954, 8.9646)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311056 #355610
analogous
#101256 #311056 #541056
triadic
#311056 #563110 #105631
tetradic
#311056 #561012 #355610 #105654
square
#311056 #561012 #355610 #105654
split-complementary
#311056 #565410 #125610
monochromatic
#0F051A #140622 #311056 #4E1A8A #6C23BD

Accessibility & contrast

On white

15.68
#311056 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#311056 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311056
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311056#FFFFFF#000000##FFFFFF
##3110561.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#282232
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311056;
/* rgb */ color: rgb(49, 16, 86);
/* oklch */ color: oklch(27.1% 0.117 299.9);
Tailwind
colors: {
  custom: {
    50: '#6d5286',
    500: '#311056',
    950: '#000000',
  },
}
SCSS
$custom: #311056;
$custom-light: #6d5286;
$custom-dark: #000000;
JSON
{
  "hex": "#311056",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 268.286,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.27125,
    "c": 0.1174,
    "h": 299.9
  },
  "luminance": 0.01695
}

Semantic roles & 50–950 ramp

primary
#311056
secondary
#648F32
accent
#EB3C99
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311056

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

Preview Lab → · Contrast checker → · Palette generator →

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