#311C94#311C94

#311C94 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.180 H 279.7°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#311C94
RGBrgb(49, 28, 148)
HSLhsl(251, 68%, 35%)
HSVhsv(251, 81%, 58%)
CMYKcmyk(66.9%, 81.1%, 0%, 42%)
CIE-LABlab(22.38, 44.42, -61.53)
CIE-LCHlch(22.38, 75.89, 305.83°)
OKLaboklab(35.07% 0.0302 -0.1776)
OKLCHoklch(35.07% 0.18 279.7)
XYZxyz(7.0255, 3.6210, 28.3399)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C94 #7F941C
analogous
#1C4394 #311C94 #6D1C94
triadic
#311C94 #94311C #1C9431
tetradic
#311C94 #941C43 #7F941C #1C946D
square
#311C94 #941C43 #7F941C #1C946D
split-complementary
#311C94 #946D1C #43941C
monochromatic
#0F092D #201261 #311C94 #4226C7 #664DDD

Accessibility & contrast

On white

12.18
#311C94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#311C94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C94
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C94#FFFFFF#000000##FFFFFF
##311C941.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311c94;
/* rgb */ color: rgb(49, 28, 148);
/* oklch */ color: oklch(35.1% 0.180 279.7);
Tailwind
colors: {
  custom: {
    50: '#785cb5',
    500: '#311c94',
    950: '#000000',
  },
}
SCSS
$custom: #311c94;
$custom-light: #785cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#311c94",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 148
  },
  "hsl": {
    "h": 250.5,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35071,
    "c": 0.1802,
    "h": 279.7
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#311C94
secondary
#ABC04C
accent
#EB3DCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311C94

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

Preview Lab → · Contrast checker → · Palette generator →

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