#311963#311963

#311963 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.122 H 292.1°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#311963
RGBrgb(49, 25, 99)
HSLhsl(259, 60%, 24%)
HSVhsv(259, 75%, 39%)
CMYKcmyk(50.5%, 74.7%, 0%, 61.2%)
CIE-LABlab(16.74, 30.82, -39.52)
CIE-LCHlch(16.74, 50.12, 307.95°)
OKLaboklab(29.59% 0.046 -0.1133)
OKLCHoklch(29.59% 0.122 292.1)
XYZxyz(3.8658, 2.2489, 12.0324)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311963 #4B6319
analogous
#192663 #311963 #561963
triadic
#311963 #633119 #196331
tetradic
#311963 #631926 #4B6319 #196356
square
#311963 #631926 #4B6319 #196356
split-complementary
#311963 #635619 #266319
monochromatic
#0C0618 #190D32 #311963 #492594 #6132C5

Accessibility & contrast

On white

14.48
#311963 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311963
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311963#FFFFFF#000000##FFFFFF
##3119631.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002862
Tritanopia (blue-blind)
#212C3C
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311963;
/* rgb */ color: rgb(49, 25, 99);
/* oklch */ color: oklch(29.6% 0.122 292.1);
Tailwind
colors: {
  custom: {
    50: '#6f5890',
    500: '#311963',
    950: '#000000',
  },
}
SCSS
$custom: #311963;
$custom-light: #6f5890;
$custom-dark: #000000;
JSON
{
  "hex": "#311963",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 99
  },
  "hsl": {
    "h": 259.459,
    "s": 59.677,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29585,
    "c": 0.12226,
    "h": 292.1
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#311963
secondary
#7C993F
accent
#E345B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030D
muted
#7B787D

Preview Lab

Preview with #311963

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

Preview Lab → · Contrast checker → · Palette generator →

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