#311156#311156

#311156 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.116 H 299.7°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#311156
RGBrgb(49, 17, 86)
HSLhsl(268, 67%, 20%)
HSVhsv(268, 80%, 34%)
CMYKcmyk(43%, 80.2%, 0%, 66.3%)
CIE-LABlab(13.98, 31.34, -35.34)
CIE-LCHlch(13.98, 47.23, 311.56°)
OKLaboklab(27.25% 0.0575 -0.1009)
OKLCHoklch(27.25% 0.116 299.7)
XYZxyz(3.1464, 1.7257, 8.9696)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311156 #365611
analogous
#111456 #311156 #531156
triadic
#311156 #563111 #115631
tetradic
#311156 #561114 #365611 #115653
square
#311156 #561114 #365611 #115653
split-complementary
#311156 #565311 #145611
monochromatic
#0F051A #140723 #311156 #4E1B89 #6B25BC

Accessibility & contrast

On white

15.61
#311156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#311156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311156
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311156#FFFFFF#000000##FFFFFF
##3111561.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311156;
/* rgb */ color: rgb(49, 17, 86);
/* oklch */ color: oklch(27.2% 0.116 299.7);
Tailwind
colors: {
  custom: {
    50: '#6d5386',
    500: '#311156',
    950: '#000000',
  },
}
SCSS
$custom: #311156;
$custom-light: #6d5386;
$custom-dark: #000000;
JSON
{
  "hex": "#311156",
  "rgb": {
    "r": 49,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 267.826,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27249,
    "c": 0.11616,
    "h": 299.7
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#311156
secondary
#658F34
accent
#EA3E9A
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311156

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

Preview Lab → · Contrast checker → · Palette generator →

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