#311794#311794

#311794 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.184 H 280.2°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#311794
RGBrgb(49, 23, 148)
HSLhsl(252, 73%, 34%)
HSVhsv(252, 84%, 58%)
CMYKcmyk(66.9%, 84.5%, 0%, 42%)
CIE-LABlab(21.59, 46.71, -62.83)
CIE-LCHlch(21.59, 78.29, 306.63°)
OKLaboklab(34.53% 0.0327 -0.1814)
OKLCHoklch(34.53% 0.184 280.2)
XYZxyz(6.9166, 3.4033, 28.3036)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311794 #7A9417
analogous
#173B94 #311794 #6F1794
triadic
#311794 #943117 #179431
tetradic
#311794 #94173B #7A9417 #17946F
square
#311794 #94173B #7A9417 #17946F
split-complementary
#311794 #946F17 #3B9417
monochromatic
#0E072A #1F0F5F #311794 #431FC9 #6444E2

Accessibility & contrast

On white

12.49
#311794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#311794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311794
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311794#FFFFFF#000000##FFFFFF
##3117941.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003897
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #311794;
/* rgb */ color: rgb(49, 23, 148);
/* oklch */ color: oklch(34.5% 0.184 280.2);
Tailwind
colors: {
  custom: {
    50: '#785ab5',
    500: '#311794',
    950: '#000000',
  },
}
SCSS
$custom: #311794;
$custom-light: #785ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#311794",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 252.48,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34529,
    "c": 0.18428,
    "h": 280.2
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#311794
secondary
#A8C344
accent
#F038CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311794

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

Preview Lab → · Contrast checker → · Palette generator →

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