#311A70#311A70

#311A70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.138 H 287.7°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#311A70
RGBrgb(49, 26, 112)
HSLhsl(256, 62%, 27%)
HSVhsv(256, 77%, 44%)
CMYKcmyk(56.3%, 76.8%, 0%, 56.1%)
CIE-LABlab(18.19, 34.29, -45.65)
CIE-LCHlch(18.19, 57.10, 306.91°)
OKLaboklab(31% 0.0419 -0.1313)
OKLCHoklch(31% 0.138 287.7)
XYZxyz(4.5598, 2.5614, 15.5802)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A70 #59701A
analogous
#1A2E70 #311A70 #5C1A70
triadic
#311A70 #70311A #1A7031
tetradic
#311A70 #701A2E #59701A #1A705C
square
#311A70 #701A2E #59701A #1A705C
split-complementary
#311A70 #705C1A #2E701A
monochromatic
#0B0619 #1B0E3E #311A70 #4726A2 #5E34D0

Accessibility & contrast

On white

13.89
#311A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#311A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A70
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A70#FFFFFF#000000##FFFFFF
##311A701.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E72
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#173143
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #311a70;
/* rgb */ color: rgb(49, 26, 112);
/* oklch */ color: oklch(31.0% 0.138 287.7);
Tailwind
colors: {
  custom: {
    50: '#71599a',
    500: '#311a70',
    950: '#000000',
  },
}
SCSS
$custom: #311a70;
$custom-light: #71599a;
$custom-dark: #000000;
JSON
{
  "hex": "#311a70",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 112
  },
  "hsl": {
    "h": 256.047,
    "s": 62.319,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30998,
    "c": 0.13782,
    "h": 287.7
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#311A70
secondary
#8AA541
accent
#E542BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311A70

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

Preview Lab → · Contrast checker → · Palette generator →

#311A70 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva