#311661#311661

#311661 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.124 H 293.6°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#311661
RGBrgb(49, 22, 97)
HSLhsl(262, 63%, 23%)
HSVhsv(262, 77%, 38%)
CMYKcmyk(49.5%, 77.3%, 0%, 62%)
CIE-LABlab(15.95, 31.90, -39.49)
CIE-LCHlch(15.95, 50.76, 308.93°)
OKLaboklab(28.97% 0.0495 -0.1132)
OKLCHoklch(28.97% 0.124 293.6)
XYZxyz(3.7106, 2.0897, 11.5148)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311661 #466116
analogous
#162061 #311661 #561661
triadic
#311661 #613116 #166131
tetradic
#311661 #611620 #466116 #166156
square
#311661 #611620 #466116 #166156
split-complementary
#311661 #615616 #206116
monochromatic
#0D0619 #180B2F #311661 #4A2193 #632DC5

Accessibility & contrast

On white

14.81
#311661 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#311661 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311661
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311661#FFFFFF#000000##FFFFFF
##3116611.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002660
Tritanopia (blue-blind)
#232A3A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311661;
/* rgb */ color: rgb(49, 22, 97);
/* oklch */ color: oklch(29.0% 0.124 293.6);
Tailwind
colors: {
  custom: {
    50: '#6f568f',
    500: '#311661',
    950: '#000000',
  },
}
SCSS
$custom: #311661;
$custom-light: #6f568f;
$custom-dark: #000000;
JSON
{
  "hex": "#311661",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 97
  },
  "hsl": {
    "h": 261.6,
    "s": 63.025,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28965,
    "c": 0.12354,
    "h": 293.6
  },
  "luminance": 0.0209
}

Semantic roles & 50–950 ramp

primary
#311661
secondary
#76983B
accent
#E642AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311661

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

Preview Lab → · Contrast checker → · Palette generator →

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