#311C73#311C73

#311C73 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.139 H 286.4°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#311C73
RGBrgb(49, 28, 115)
HSLhsl(254, 61%, 28%)
HSVhsv(254, 76%, 45%)
CMYKcmyk(57.4%, 75.7%, 0%, 54.9%)
CIE-LABlab(18.89, 34.11, -46.45)
CIE-LCHlch(18.89, 57.63, 306.29°)
OKLaboklab(31.58% 0.0394 -0.1336)
OKLCHoklch(31.58% 0.139 286.4)
XYZxyz(4.7755, 2.7210, 16.4899)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C73 #5E731C
analogous
#1C3273 #311C73 #5C1C73
triadic
#311C73 #73311C #1C7331
tetradic
#311C73 #731C32 #5E731C #1C735C
square
#311C73 #731C32 #5E731C #1C735C
split-complementary
#311C73 #735C1C #32731C
monochromatic
#0A0619 #1C1042 #311C73 #4628A4 #5E3ACF

Accessibility & contrast

On white

13.60
#311C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#311C73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C73
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C73#FFFFFF#000000##FFFFFF
##311C731.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#143345
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #311c73;
/* rgb */ color: rgb(49, 28, 115);
/* oklch */ color: oklch(31.6% 0.139 286.4);
Tailwind
colors: {
  custom: {
    50: '#715a9c',
    500: '#311c73',
    950: '#000000',
  },
}
SCSS
$custom: #311c73;
$custom-light: #715a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#311c73",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 115
  },
  "hsl": {
    "h": 254.483,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31581,
    "c": 0.13932,
    "h": 286.4
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#311C73
secondary
#8FA743
accent
#E444BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #311C73

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

Preview Lab → · Contrast checker → · Palette generator →

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