#311356#311356

#311356 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.114 H 299.1°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#311356
RGBrgb(49, 19, 86)
HSLhsl(267, 64%, 21%)
HSVhsv(267, 78%, 34%)
CMYKcmyk(43%, 77.9%, 0%, 66.3%)
CIE-LABlab(14.35, 30.29, -34.73)
CIE-LCHlch(14.35, 46.08, 311.09°)
OKLaboklab(27.51% 0.0553 -0.0992)
OKLCHoklch(27.51% 0.114 299.1)
XYZxyz(3.1788, 1.7906, 8.9804)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311356 #385613
analogous
#131656 #311356 #521356
triadic
#311356 #563113 #135631
tetradic
#311356 #561316 #385613 #135652
square
#311356 #561316 #385613 #135652
split-complementary
#311356 #565213 #165613
monochromatic
#0E0619 #140824 #311356 #4E1E88 #6A29BA

Accessibility & contrast

On white

15.46
#311356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#311356 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311356
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311356#FFFFFF#000000##FFFFFF
##3113561.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#282433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311356;
/* rgb */ color: rgb(49, 19, 86);
/* oklch */ color: oklch(27.5% 0.114 299.1);
Tailwind
colors: {
  custom: {
    50: '#6d5486',
    500: '#311356',
    950: '#000000',
  },
}
SCSS
$custom: #311356;
$custom-light: #6d5486;
$custom-dark: #000000;
JSON
{
  "hex": "#311356",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 266.866,
    "s": 63.81,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27511,
    "c": 0.11357,
    "h": 299.1
  },
  "luminance": 0.01791
}

Semantic roles & 50–950 ramp

primary
#311356
secondary
#678E36
accent
#E7419D
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311356

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

Preview Lab → · Contrast checker → · Palette generator →

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