#311C80#311C80

#311C80 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.156 H 283.4°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#311C80
RGBrgb(49, 28, 128)
HSLhsl(253, 64%, 31%)
HSVhsv(253, 78%, 50%)
CMYKcmyk(61.7%, 78.1%, 0%, 49.8%)
CIE-LABlab(20.21, 38.22, -52.59)
CIE-LCHlch(20.21, 65.01, 306.01°)
OKLaboklab(32.91% 0.0361 -0.1516)
OKLCHoklch(32.91% 0.156 283.4)
XYZxyz(5.5770, 3.0416, 20.7111)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C80 #6B801C
analogous
#1C3980 #311C80 #631C80
triadic
#311C80 #80311C #1C8031
tetradic
#311C80 #801C39 #6B801C #1C8063
square
#311C80 #801C39 #6B801C #1C8063
split-complementary
#311C80 #80631C #39801C
monochromatic
#0B061C #1E114E #311C80 #4427B2 #6041D5

Accessibility & contrast

On white

13.06
#311C80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#311C80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C80
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C80#FFFFFF#000000##FFFFFF
##311C801.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #311c80;
/* rgb */ color: rgb(49, 28, 128);
/* oklch */ color: oklch(32.9% 0.156 283.4);
Tailwind
colors: {
  custom: {
    50: '#745ba6',
    500: '#311c80',
    950: '#000000',
  },
}
SCSS
$custom: #311c80;
$custom-light: #745ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#311c80",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 128
  },
  "hsl": {
    "h": 252.6,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32913,
    "c": 0.15582,
    "h": 283.4
  },
  "luminance": 0.03042
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311C80

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

Preview Lab → · Contrast checker → · Palette generator →

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