#311964#311964

#311964 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.124 H 291.7°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#311964
RGBrgb(49, 25, 100)
HSLhsl(259, 60%, 25%)
HSVhsv(259, 75%, 39%)
CMYKcmyk(51%, 75%, 0%, 60.8%)
CIE-LABlab(16.84, 31.13, -40.03)
CIE-LCHlch(16.84, 50.71, 307.87°)
OKLaboklab(29.68% 0.0458 -0.1148)
OKLCHoklch(29.68% 0.124 291.7)
XYZxyz(3.9139, 2.2682, 12.2857)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311964 #4C6419
analogous
#192764 #311964 #571964
triadic
#311964 #643119 #196431
tetradic
#311964 #641927 #4C6419 #196457
square
#311964 #641927 #4C6419 #196457
split-complementary
#311964 #645719 #276419
monochromatic
#0C0618 #190D33 #311964 #492595 #6131C6

Accessibility & contrast

On white

14.45
#311964 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#311964 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311964
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311964#FFFFFF#000000##FFFFFF
##3119641.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002863
Tritanopia (blue-blind)
#212C3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311964;
/* rgb */ color: rgb(49, 25, 100);
/* oklch */ color: oklch(29.7% 0.124 291.7);
Tailwind
colors: {
  custom: {
    50: '#6f5891',
    500: '#311964',
    950: '#000000',
  },
}
SCSS
$custom: #311964;
$custom-light: #6f5891;
$custom-dark: #000000;
JSON
{
  "hex": "#311964",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 100
  },
  "hsl": {
    "h": 259.2,
    "s": 60,
    "l": 24.51
  },
  "oklch": {
    "l": 0.2968,
    "c": 0.12356,
    "h": 291.7
  },
  "luminance": 0.02268
}

Semantic roles & 50–950 ramp

primary
#311964
secondary
#7D9A3F
accent
#E345B0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311964

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

Preview Lab → · Contrast checker → · Palette generator →

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