#311256#311256

#311256 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.115 H 299.4°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#311256
RGBrgb(49, 18, 86)
HSLhsl(267, 65%, 20%)
HSVhsv(267, 79%, 34%)
CMYKcmyk(43%, 79.1%, 0%, 66.3%)
CIE-LABlab(14.16, 30.82, -35.04)
CIE-LCHlch(14.16, 46.67, 311.33°)
OKLaboklab(27.38% 0.0564 -0.1001)
OKLCHoklch(27.38% 0.115 299.4)
XYZxyz(3.1622, 1.7574, 8.9749)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311256 #375612
analogous
#121556 #311256 #531256
triadic
#311256 #563112 #125631
tetradic
#311256 #561215 #375612 #125653
square
#311256 #561215 #375612 #125653
split-complementary
#311256 #565312 #155612
monochromatic
#0E0519 #140723 #311256 #4E1D89 #6B27BB

Accessibility & contrast

On white

15.54
#311256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311256
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311256#FFFFFF#000000##FFFFFF
##3112561.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311256;
/* rgb */ color: rgb(49, 18, 86);
/* oklch */ color: oklch(27.4% 0.115 299.4);
Tailwind
colors: {
  custom: {
    50: '#6d5386',
    500: '#311256',
    950: '#000000',
  },
}
SCSS
$custom: #311256;
$custom-light: #6d5386;
$custom-dark: #000000;
JSON
{
  "hex": "#311256",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 267.353,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27378,
    "c": 0.11489,
    "h": 299.4
  },
  "luminance": 0.01757
}

Semantic roles & 50–950 ramp

primary
#311256
secondary
#668F35
accent
#E83F9B
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311256

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

Preview Lab → · Contrast checker → · Palette generator →

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