#311C71#311C71

#311C71 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.137 H 287.0°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#311C71
RGBrgb(49, 28, 113)
HSLhsl(255, 60%, 28%)
HSVhsv(255, 75%, 44%)
CMYKcmyk(56.6%, 75.2%, 0%, 55.7%)
CIE-LABlab(18.69, 33.48, -45.48)
CIE-LCHlch(18.69, 56.47, 306.36°)
OKLaboklab(31.38% 0.0399 -0.1308)
OKLCHoklch(31.38% 0.137 287)
XYZxyz(4.6616, 2.6755, 15.8904)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C71 #5C711C
analogous
#1C3171 #311C71 #5C1C71
triadic
#311C71 #71311C #1C7131
tetradic
#311C71 #711C31 #5C711C #1C715C
square
#311C71 #711C31 #5C711C #1C715C
split-complementary
#311C71 #715C1C #31711C
monochromatic
#0B0619 #1C1040 #311C71 #4628A2 #5E39CE

Accessibility & contrast

On white

13.68
#311C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#311C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C71
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C71#FFFFFF#000000##FFFFFF
##311C711.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#163344
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311c71;
/* rgb */ color: rgb(49, 28, 113);
/* oklch */ color: oklch(31.4% 0.137 287.0);
Tailwind
colors: {
  custom: {
    50: '#715a9b',
    500: '#311c71',
    950: '#000000',
  },
}
SCSS
$custom: #311c71;
$custom-light: #715a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#311c71",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 254.824,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31383,
    "c": 0.13673,
    "h": 287
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#311C71
secondary
#8DA643
accent
#E344BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311C71

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

Preview Lab → · Contrast checker → · Palette generator →

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