#311F83#311F83

#311F83 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.156 H 282.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#311F83
RGBrgb(49, 31, 131)
HSLhsl(251, 62%, 32%)
HSVhsv(251, 76%, 51%)
CMYKcmyk(62.6%, 76.3%, 0%, 48.6%)
CIE-LABlab(21.10, 37.53, -53.02)
CIE-LCHlch(21.10, 64.96, 305.29°)
OKLaboklab(33.63% 0.0331 -0.1529)
OKLCHoklch(33.63% 0.156 282.2)
XYZxyz(5.8521, 3.2712, 21.7914)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F83 #71831F
analogous
#1F3F83 #311F83 #631F83
triadic
#311F83 #83311F #1F8331
tetradic
#311F83 #831F3F #71831F #1F8363
square
#311F83 #831F3F #71831F #1F8363
split-complementary
#311F83 #83631F #3F831F
monochromatic
#0C0820 #1E1352 #311F83 #442BB4 #6249D4

Accessibility & contrast

On white

12.69
#311F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#311F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F83
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F83#FFFFFF#000000##FFFFFF
##311F831.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #311f83;
/* rgb */ color: rgb(49, 31, 131);
/* oklch */ color: oklch(33.6% 0.156 282.2);
Tailwind
colors: {
  custom: {
    50: '#745da8',
    500: '#311f83',
    950: '#000000',
  },
}
SCSS
$custom: #311f83;
$custom-light: #745da8;
$custom-dark: #000000;
JSON
{
  "hex": "#311f83",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 250.8,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33632,
    "c": 0.15642,
    "h": 282.2
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#311F83
secondary
#A2B648
accent
#E543C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311F83

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

Preview Lab → · Contrast checker → · Palette generator →

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