#311C95#311C95

#311C95 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.181 H 279.5°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#311C95
RGBrgb(49, 28, 149)
HSLhsl(250, 68%, 35%)
HSVhsv(250, 81%, 58%)
CMYKcmyk(67.1%, 81.2%, 0%, 41.6%)
CIE-LABlab(22.49, 44.73, -61.96)
CIE-LCHlch(22.49, 76.42, 305.82°)
OKLaboklab(35.18% 0.0299 -0.1789)
OKLCHoklch(35.18% 0.181 279.5)
XYZxyz(7.1050, 3.6528, 28.7586)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C95 #80951C
analogous
#1C4495 #311C95 #6E1C95
triadic
#311C95 #95311C #1C9531
tetradic
#311C95 #951C44 #80951C #1C956E
square
#311C95 #951C44 #80951C #1C956E
split-complementary
#311C95 #956E1C #44951C
monochromatic
#0F092E #201261 #311C95 #4226C9 #674EDE

Accessibility & contrast

On white

12.13
#311C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#311C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C95
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C95#FFFFFF#000000##FFFFFF
##311C951.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311c95;
/* rgb */ color: rgb(49, 28, 149);
/* oklch */ color: oklch(35.2% 0.181 279.5);
Tailwind
colors: {
  custom: {
    50: '#785cb5',
    500: '#311c95',
    950: '#000000',
  },
}
SCSS
$custom: #311c95;
$custom-light: #785cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#311c95",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 149
  },
  "hsl": {
    "h": 250.413,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35182,
    "c": 0.18139,
    "h": 279.5
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311C95

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

Preview Lab → · Contrast checker → · Palette generator →

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