#311968#311968

#311968 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.129 H 290.4°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#311968
RGBrgb(49, 25, 104)
HSLhsl(258, 61%, 25%)
HSVhsv(258, 76%, 41%)
CMYKcmyk(52.9%, 76%, 0%, 59.2%)
CIE-LABlab(17.21, 32.36, -42.04)
CIE-LCHlch(17.21, 53.06, 307.59°)
OKLaboklab(30.07% 0.0448 -0.1207)
OKLCHoklch(30.07% 0.129 290.4)
XYZxyz(4.1122, 2.3475, 13.3305)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311968 #506819
analogous
#192868 #311968 #581968
triadic
#311968 #683119 #196831
tetradic
#311968 #681928 #506819 #196858
square
#311968 #681928 #506819 #196858
split-complementary
#311968 #685819 #286819
monochromatic
#0C0619 #1A0D37 #311968 #482599 #5F31CB

Accessibility & contrast

On white

14.29
#311968 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#311968 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311968
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311968#FFFFFF#000000##FFFFFF
##3119681.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#1E2E3E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #311968;
/* rgb */ color: rgb(49, 25, 104);
/* oklch */ color: oklch(30.1% 0.129 290.4);
Tailwind
colors: {
  custom: {
    50: '#705894',
    500: '#311968',
    950: '#000000',
  },
}
SCSS
$custom: #311968;
$custom-light: #705894;
$custom-dark: #000000;
JSON
{
  "hex": "#311968",
  "rgb": {
    "r": 49,
    "g": 25,
    "b": 104
  },
  "hsl": {
    "h": 258.228,
    "s": 61.24,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30066,
    "c": 0.12875,
    "h": 290.4
  },
  "luminance": 0.02348
}

Semantic roles & 50–950 ramp

primary
#311968
secondary
#819E3F
accent
#E443B3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311968

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

Preview Lab → · Contrast checker → · Palette generator →

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