#311C7F#311C7F

#311C7F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.155 H 283.6°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#311C7F
RGBrgb(49, 28, 127)
HSLhsl(253, 64%, 30%)
HSVhsv(253, 78%, 50%)
CMYKcmyk(61.4%, 78%, 0%, 50.2%)
CIE-LABlab(20.11, 37.90, -52.13)
CIE-LCHlch(20.11, 64.45, 306.02°)
OKLaboklab(32.81% 0.0363 -0.1502)
OKLCHoklch(32.81% 0.155 283.6)
XYZxyz(5.5115, 3.0154, 20.3662)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C7F #6A7F1C
analogous
#1C397F #311C7F #621C7F
triadic
#311C7F #7F311C #1C7F31
tetradic
#311C7F #7F1C39 #6A7F1C #1C7F62
square
#311C7F #7F1C39 #6A7F1C #1C7F62
split-complementary
#311C7F #7F621C #397F1C
monochromatic
#0A061B #1E114D #311C7F #4427B1 #6040D5

Accessibility & contrast

On white

13.10
#311C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#311C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C7F
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C7F#FFFFFF#000000##FFFFFF
##311C7F1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311c7f;
/* rgb */ color: rgb(49, 28, 127);
/* oklch */ color: oklch(32.8% 0.155 283.6);
Tailwind
colors: {
  custom: {
    50: '#745ba5',
    500: '#311c7f',
    950: '#000000',
  },
}
SCSS
$custom: #311c7f;
$custom-light: #745ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#311c7f",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 252.727,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32808,
    "c": 0.15457,
    "h": 283.6
  },
  "luminance": 0.03016
}

Semantic roles & 50–950 ramp

primary
#311C7F
secondary
#9BB344
accent
#E741C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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