#311C70#311C70

#311C70 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.135 H 287.2°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#311C70
RGBrgb(49, 28, 112)
HSLhsl(255, 60%, 27%)
HSVhsv(255, 75%, 44%)
CMYKcmyk(56.3%, 75%, 0%, 56.1%)
CIE-LABlab(18.60, 33.16, -44.99)
CIE-LCHlch(18.60, 55.89, 306.39°)
OKLaboklab(31.28% 0.0401 -0.1293)
OKLCHoklch(31.28% 0.135 287.2)
XYZxyz(4.6056, 2.6531, 15.5955)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C70 #5B701C
analogous
#1C3170 #311C70 #5B1C70
triadic
#311C70 #70311C #1C7031
tetradic
#311C70 #701C31 #5B701C #1C705B
square
#311C70 #701C31 #5B701C #1C705B
split-complementary
#311C70 #705B1C #31701C
monochromatic
#0B0618 #1C103F #311C70 #4628A1 #5E39CD

Accessibility & contrast

On white

13.72
#311C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#311C70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C70
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C70#FFFFFF#000000##FFFFFF
##311C701.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#173244
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311c70;
/* rgb */ color: rgb(49, 28, 112);
/* oklch */ color: oklch(31.3% 0.135 287.2);
Tailwind
colors: {
  custom: {
    50: '#715a9a',
    500: '#311c70',
    950: '#000000',
  },
}
SCSS
$custom: #311c70;
$custom-light: #715a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#311c70",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 112
  },
  "hsl": {
    "h": 255,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31284,
    "c": 0.13543,
    "h": 287.2
  },
  "luminance": 0.02653
}

Semantic roles & 50–950 ramp

primary
#311C70
secondary
#8CA543
accent
#E345BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311C70

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

Preview Lab → · Contrast checker → · Palette generator →

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