#311C8D#311C8D

#311C8D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.172 H 280.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#311C8D
RGBrgb(49, 28, 141)
HSLhsl(251, 67%, 33%)
HSVhsv(251, 80%, 55%)
CMYKcmyk(65.2%, 80.1%, 0%, 44.7%)
CIE-LABlab(21.60, 42.27, -58.46)
CIE-LCHlch(21.60, 72.14, 305.87°)
OKLaboklab(34.3% 0.0323 -0.1687)
OKLCHoklch(34.3% 0.172 280.8)
XYZxyz(6.4881, 3.4061, 25.5097)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C8D #788D1C
analogous
#1C408D #311C8D #691C8D
triadic
#311C8D #8D311C #1C8D31
tetradic
#311C8D #8D1C40 #788D1C #1C8D69
square
#311C8D #8D1C40 #788D1C #1C8D69
split-complementary
#311C8D #8D691C #408D1C
monochromatic
#0E0827 #1F125A #311C8D #4326C0 #6449DB

Accessibility & contrast

On white

12.49
#311C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#311C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C8D
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C8D#FFFFFF#000000##FFFFFF
##311C8D1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311c8d;
/* rgb */ color: rgb(49, 28, 141);
/* oklch */ color: oklch(34.3% 0.172 280.8);
Tailwind
colors: {
  custom: {
    50: '#765cb0',
    500: '#311c8d',
    950: '#000000',
  },
}
SCSS
$custom: #311c8d;
$custom-light: #765cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#311c8d",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 141
  },
  "hsl": {
    "h": 251.15,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34303,
    "c": 0.1718,
    "h": 280.8
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#311C8D
secondary
#A7BD48
accent
#EA3ECA
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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