#311D73#311D73

#311D73 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.138 H 286.2°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#311D73
RGBrgb(49, 29, 115)
HSLhsl(254, 60%, 28%)
HSVhsv(254, 75%, 45%)
CMYKcmyk(57.4%, 74.8%, 0%, 54.9%)
CIE-LABlab(19.09, 33.54, -46.12)
CIE-LCHlch(19.09, 57.02, 306.03°)
OKLaboklab(31.73% 0.0385 -0.1326)
OKLCHoklch(31.73% 0.138 286.2)
XYZxyz(4.7996, 2.7692, 16.4979)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D73 #5F731D
analogous
#1D3473 #311D73 #5C1D73
triadic
#311D73 #73311D #1D7331
tetradic
#311D73 #731D34 #5F731D #1D735C
square
#311D73 #731D34 #5F731D #1D735C
split-complementary
#311D73 #735C1D #34731D
monochromatic
#0A0618 #1C1142 #311D73 #4629A4 #5E3CCE

Accessibility & contrast

On white

13.51
#311D73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#311D73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D73
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D73#FFFFFF#000000##FFFFFF
##311D731.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#143446
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311d73;
/* rgb */ color: rgb(49, 29, 115);
/* oklch */ color: oklch(31.7% 0.138 286.2);
Tailwind
colors: {
  custom: {
    50: '#715b9c',
    500: '#311d73',
    950: '#000000',
  },
}
SCSS
$custom: #311d73;
$custom-light: #715b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#311d73",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 115
  },
  "hsl": {
    "h": 253.953,
    "s": 59.722,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31727,
    "c": 0.13813,
    "h": 286.2
  },
  "luminance": 0.0277
}

Semantic roles & 50–950 ramp

primary
#311D73
secondary
#90A745
accent
#E345BE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311D73

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

Preview Lab → · Contrast checker → · Palette generator →

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