#311960#311960

#311960 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.3% C 0.118 H 293.2°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#311960
RGBrgb(49, 25, 96)
HSLhsl(260, 59%, 24%)
HSVhsv(260, 74%, 38%)
CMYKcmyk(49%, 74%, 0%, 62.4%)
CIE-LABlab(16.47, 29.89, -37.98)
CIE-LCHlch(16.47, 48.34, 308.20°)
OKLaboklab(29.3% 0.0466 -0.1088)
OKLCHoklch(29.3% 0.118 293.2)
XYZxyz(3.7250, 2.1926, 11.2910)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311960 #486019
analogous
#192460 #311960 #541960
triadic
#311960 #603119 #196031
tetradic
#311960 #601924 #486019 #196054
square
#311960 #601924 #486019 #196054
split-complementary
#311960 #605419 #246019
monochromatic
#0C0618 #180C2F #311960 #4A2691 #6332C1

Accessibility & contrast

On white

14.60
#311960 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#311960 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311960
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311960#FFFFFF#000000##FFFFFF
##3119601.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A62
Deuteranopia (green-blind)
#00275F
Tritanopia (blue-blind)
#232B3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311960;
/* rgb */ color: rgb(49, 25, 96);
/* oklch */ color: oklch(29.3% 0.118 293.2);
Tailwind
colors: {
  custom: {
    50: '#6e588e',
    500: '#311960',
    950: '#000000',
  },
}
SCSS
$custom: #311960;
$custom-light: #6e588e;
$custom-dark: #000000;
JSON
{
  "hex": "#311960",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 96
  },
  "hsl": {
    "h": 260.282,
    "s": 58.678,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29303,
    "c": 0.11832,
    "h": 293.2
  },
  "luminance": 0.02193
}

Semantic roles & 50–950 ramp

primary
#311960
secondary
#79963F
accent
#E246AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311960

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

Preview Lab → · Contrast checker → · Palette generator →

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