#311C7C#311C7C

#311C7C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.151 H 284.3°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#311C7C
RGBrgb(49, 28, 124)
HSLhsl(253, 63%, 30%)
HSVhsv(253, 77%, 49%)
CMYKcmyk(60.5%, 77.4%, 0%, 51.4%)
CIE-LABlab(19.80, 36.96, -50.73)
CIE-LCHlch(19.80, 62.77, 306.07°)
OKLaboklab(32.5% 0.0371 -0.1461)
OKLCHoklch(32.5% 0.151 284.3)
XYZxyz(5.3189, 2.9384, 19.3518)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C7C #677C1C
analogous
#1C377C #311C7C #611C7C
triadic
#311C7C #7C311C #1C7C31
tetradic
#311C7C #7C1C37 #677C1C #1C7C61
square
#311C7C #7C1C37 #677C1C #1C7C61
split-complementary
#311C7C #7C611C #377C1C
monochromatic
#0A0619 #1D114A #311C7C #4527AE #5F3FD4

Accessibility & contrast

On white

13.23
#311C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#311C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C7C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C7C#FFFFFF#000000##FFFFFF
##311C7C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#05374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311c7c;
/* rgb */ color: rgb(49, 28, 124);
/* oklch */ color: oklch(32.5% 0.151 284.3);
Tailwind
colors: {
  custom: {
    50: '#735ba3',
    500: '#311c7c',
    950: '#000000',
  },
}
SCSS
$custom: #311c7c;
$custom-light: #735ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#311c7c",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 253.125,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32496,
    "c": 0.1508,
    "h": 284.3
  },
  "luminance": 0.02939
}

Semantic roles & 50–950 ramp

primary
#311C7C
secondary
#98B044
accent
#E642C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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