#311966#311966

#311966 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.126 H 291.0°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#311966
RGBrgb(49, 25, 102)
HSLhsl(259, 61%, 25%)
HSVhsv(259, 75%, 40%)
CMYKcmyk(52%, 75.5%, 0%, 60%)
CIE-LABlab(17.02, 31.74, -41.04)
CIE-LCHlch(17.02, 51.88, 307.72°)
OKLaboklab(29.87% 0.0453 -0.1177)
OKLCHoklch(29.87% 0.126 291)
XYZxyz(4.0118, 2.3074, 12.8018)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311966 #4E6619
analogous
#192866 #311966 #571966
triadic
#311966 #663119 #196631
tetradic
#311966 #661928 #4E6619 #196657
square
#311966 #661928 #4E6619 #196657
split-complementary
#311966 #665719 #286619
monochromatic
#0C0619 #190D35 #311966 #492597 #6031C8

Accessibility & contrast

On white

14.37
#311966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#311966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311966
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311966#FFFFFF#000000##FFFFFF
##3119661.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B68
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#1F2D3D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311966;
/* rgb */ color: rgb(49, 25, 102);
/* oklch */ color: oklch(29.9% 0.126 291.0);
Tailwind
colors: {
  custom: {
    50: '#6f5892',
    500: '#311966',
    950: '#000000',
  },
}
SCSS
$custom: #311966;
$custom-light: #6f5892;
$custom-dark: #000000;
JSON
{
  "hex": "#311966",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 258.701,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29872,
    "c": 0.12617,
    "h": 291
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#311966
secondary
#7F9C3F
accent
#E444B2
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311966

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

Preview Lab → · Contrast checker → · Palette generator →

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