#311C7D#311C7D

#311C7D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.152 H 284.0°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#311C7D
RGBrgb(49, 28, 125)
HSLhsl(253, 63%, 30%)
HSVhsv(253, 78%, 49%)
CMYKcmyk(60.8%, 77.6%, 0%, 51%)
CIE-LABlab(19.90, 37.27, -51.20)
CIE-LCHlch(19.90, 63.33, 306.05°)
OKLaboklab(32.6% 0.0369 -0.1475)
OKLCHoklch(32.6% 0.152 284)
XYZxyz(5.3824, 2.9638, 19.6865)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C7D #687D1C
analogous
#1C377D #311C7D #621C7D
triadic
#311C7D #7D311C #1C7D31
tetradic
#311C7D #7D1C37 #687D1C #1C7D62
square
#311C7D #7D1C37 #687D1C #1C7D62
split-complementary
#311C7D #7D621C #377D1C
monochromatic
#0A0619 #1D114B #311C7D #4527AF #603FD4

Accessibility & contrast

On white

13.18
#311C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311C7D
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C7D#FFFFFF#000000##FFFFFF
##311C7D1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#03374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311c7d;
/* rgb */ color: rgb(49, 28, 125);
/* oklch */ color: oklch(32.6% 0.152 284.0);
Tailwind
colors: {
  custom: {
    50: '#735ba4',
    500: '#311c7d',
    950: '#000000',
  },
}
SCSS
$custom: #311c7d;
$custom-light: #735ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#311c7d",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 252.99,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.326,
    "c": 0.15206,
    "h": 284
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#311C7D
secondary
#99B144
accent
#E641C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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