#311783#311783

#311783 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.164 H 283.5°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#311783
RGBrgb(49, 23, 131)
HSLhsl(254, 70%, 30%)
HSVhsv(254, 82%, 51%)
CMYKcmyk(62.6%, 82.4%, 0%, 48.6%)
CIE-LABlab(19.66, 41.66, -55.40)
CIE-LCHlch(19.66, 69.32, 306.94°)
OKLaboklab(32.62% 0.0385 -0.1597)
OKLCHoklch(32.62% 0.164 283.5)
XYZxyz(5.6685, 2.9041, 21.7302)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311783 #698317
analogous
#173383 #311783 #671783
triadic
#311783 #833117 #178331
tetradic
#311783 #831733 #698317 #178367
square
#311783 #831733 #698317 #178367
split-complementary
#311783 #836717 #338317
monochromatic
#0A051B #1E0E4F #311783 #4420B7 #6038DC

Accessibility & contrast

On white

13.28
#311783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#311783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311783
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311783#FFFFFF#000000##FFFFFF
##3117831.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003386
Deuteranopia (green-blind)
#002C81
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311783;
/* rgb */ color: rgb(49, 23, 131);
/* oklch */ color: oklch(32.6% 0.164 283.5);
Tailwind
colors: {
  custom: {
    50: '#7559a8',
    500: '#311783',
    950: '#000000',
  },
}
SCSS
$custom: #311783;
$custom-light: #7559a8;
$custom-dark: #000000;
JSON
{
  "hex": "#311783",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 254.444,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32623,
    "c": 0.1643,
    "h": 283.5
  },
  "luminance": 0.02904
}

Semantic roles & 50–950 ramp

primary
#311783
secondary
#9AB73F
accent
#ED3BC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #311783

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

Preview Lab → · Contrast checker → · Palette generator →

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