#311681#311681

#311681 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.163 H 284.1°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#311681
RGBrgb(49, 22, 129)
HSLhsl(255, 71%, 30%)
HSVhsv(255, 83%, 51%)
CMYKcmyk(62%, 82.9%, 0%, 49.4%)
CIE-LABlab(19.27, 41.53, -54.77)
CIE-LCHlch(19.27, 68.74, 307.17°)
OKLaboklab(32.29% 0.0397 -0.1579)
OKLCHoklch(32.29% 0.163 284.1)
XYZxyz(5.5148, 2.8114, 21.0167)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311681 #668116
analogous
#163181 #311681 #671681
triadic
#311681 #813116 #168131
tetradic
#311681 #811631 #668116 #168167
square
#311681 #811631 #668116 #168167
split-complementary
#311681 #816716 #318116
monochromatic
#0A041A #1D0D4D #311681 #451FB5 #5F35DD

Accessibility & contrast

On white

13.44
#311681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#311681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311681
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311681#FFFFFF#000000##FFFFFF
##3116811.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #311681;
/* rgb */ color: rgb(49, 22, 129);
/* oklch */ color: oklch(32.3% 0.163 284.1);
Tailwind
colors: {
  custom: {
    50: '#7458a7',
    500: '#311681',
    950: '#000000',
  },
}
SCSS
$custom: #311681;
$custom-light: #7458a7;
$custom-dark: #000000;
JSON
{
  "hex": "#311681",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 255.14,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32291,
    "c": 0.1628,
    "h": 284.1
  },
  "luminance": 0.02812
}

Semantic roles & 50–950 ramp

primary
#311681
secondary
#97B63D
accent
#EE3AC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #311681

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

Preview Lab → · Contrast checker → · Palette generator →

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