#311994#311994

#311994 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.183 H 280.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#311994
RGBrgb(49, 25, 148)
HSLhsl(252, 71%, 34%)
HSVhsv(252, 83%, 58%)
CMYKcmyk(66.9%, 83.1%, 0%, 42%)
CIE-LABlab(21.89, 45.83, -62.33)
CIE-LCHlch(21.89, 77.36, 306.33°)
OKLaboklab(34.74% 0.0317 -0.1799)
OKLCHoklch(34.74% 0.183 280)
XYZxyz(6.9578, 3.4858, 28.3174)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311994 #7C9419
analogous
#193F94 #311994 #6F1994
triadic
#311994 #943119 #199431
tetradic
#311994 #94193F #7C9419 #19946F
square
#311994 #94193F #7C9419 #19946F
split-complementary
#311994 #946F19 #3F9419
monochromatic
#0E072B #201060 #311994 #4222C8 #6547E0

Accessibility & contrast

On white

12.37
#311994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#311994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311994
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311994#FFFFFF#000000##FFFFFF
##3119941.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311994;
/* rgb */ color: rgb(49, 25, 148);
/* oklch */ color: oklch(34.7% 0.183 280.0);
Tailwind
colors: {
  custom: {
    50: '#785bb5',
    500: '#311994',
    950: '#000000',
  },
}
SCSS
$custom: #311994;
$custom-light: #785bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#311994",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 148
  },
  "hsl": {
    "h": 251.707,
    "s": 71.098,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34736,
    "c": 0.18272,
    "h": 280
  },
  "luminance": 0.03486
}

Semantic roles & 50–950 ramp

primary
#311994
secondary
#AAC147
accent
#EE3ACB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311994

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

Preview Lab → · Contrast checker → · Palette generator →

#311994 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva