#311456#311456

#311456 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.112 H 298.9°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#311456
RGBrgb(49, 20, 86)
HSLhsl(266, 62%, 21%)
HSVhsv(266, 77%, 34%)
CMYKcmyk(43%, 76.7%, 0%, 66.3%)
CIE-LABlab(14.54, 29.74, -34.42)
CIE-LCHlch(14.54, 45.49, 310.83°)
OKLaboklab(27.65% 0.0542 -0.0983)
OKLCHoklch(27.65% 0.112 298.9)
XYZxyz(3.1961, 1.8251, 8.9862)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311456 #395614
analogous
#141856 #311456 #521456
triadic
#311456 #563114 #145631
tetradic
#311456 #561418 #395614 #145652
square
#311456 #561418 #395614 #145652
split-complementary
#311456 #565214 #185614
monochromatic
#0E0619 #150824 #311456 #4D2088 #6A2BB9

Accessibility & contrast

On white

15.38
#311456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311456
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311456#FFFFFF#000000##FFFFFF
##3114561.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311456;
/* rgb */ color: rgb(49, 20, 86);
/* oklch */ color: oklch(27.6% 0.112 298.9);
Tailwind
colors: {
  custom: {
    50: '#6d5486',
    500: '#311456',
    950: '#000000',
  },
}
SCSS
$custom: #311456;
$custom-light: #6d5486;
$custom-dark: #000000;
JSON
{
  "hex": "#311456",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 266.364,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27649,
    "c": 0.11223,
    "h": 298.9
  },
  "luminance": 0.01825
}

Semantic roles & 50–950 ramp

primary
#311456
secondary
#688E38
accent
#E5429E
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311456

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

Preview Lab → · Contrast checker → · Palette generator →

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