#311A71#311A71

#311A71 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.139 H 287.4°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#311A71
RGBrgb(49, 26, 113)
HSLhsl(256, 63%, 27%)
HSVhsv(256, 77%, 44%)
CMYKcmyk(56.6%, 77%, 0%, 55.7%)
CIE-LABlab(18.29, 34.60, -46.14)
CIE-LCHlch(18.29, 57.67, 306.87°)
OKLaboklab(31.1% 0.0417 -0.1327)
OKLCHoklch(31.1% 0.139 287.4)
XYZxyz(4.6158, 2.5838, 15.8751)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311A71 #5A711A
analogous
#1A2F71 #311A71 #5D1A71
triadic
#311A71 #71311A #1A7131
tetradic
#311A71 #711A2F #5A711A #1A715D
square
#311A71 #711A2F #5A711A #1A715D
split-complementary
#311A71 #715D1A #2F711A
monochromatic
#0B0619 #1B0F3F #311A71 #4725A3 #5E35D0

Accessibility & contrast

On white

13.84
#311A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#311A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311A71
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311A71#FFFFFF#000000##FFFFFF
##311A711.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#163244
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311a71;
/* rgb */ color: rgb(49, 26, 113);
/* oklch */ color: oklch(31.1% 0.139 287.4);
Tailwind
colors: {
  custom: {
    50: '#71599b',
    500: '#311a71',
    950: '#000000',
  },
}
SCSS
$custom: #311a71;
$custom-light: #71599b;
$custom-dark: #000000;
JSON
{
  "hex": "#311a71",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 255.862,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31099,
    "c": 0.13909,
    "h": 287.4
  },
  "luminance": 0.02584
}

Semantic roles & 50–950 ramp

primary
#311A71
secondary
#8BA641
accent
#E642BA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311A71

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

Preview Lab → · Contrast checker → · Palette generator →

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