#311864#311864

#311864 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.125 H 292.0°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#311864
RGBrgb(49, 24, 100)
HSLhsl(260, 61%, 24%)
HSVhsv(260, 76%, 39%)
CMYKcmyk(51%, 76%, 0%, 60.8%)
CIE-LABlab(16.63, 31.70, -40.36)
CIE-LCHlch(16.63, 51.32, 308.14°)
OKLaboklab(29.54% 0.0468 -0.1157)
OKLCHoklch(29.54% 0.125 292)
XYZxyz(3.8929, 2.2262, 12.2787)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311864 #4B6418
analogous
#182564 #311864 #571864
triadic
#311864 #643118 #186431
tetradic
#311864 #641825 #4B6418 #186457
square
#311864 #641825 #4B6418 #186457
split-complementary
#311864 #645718 #256418
monochromatic
#0C0619 #190C33 #311864 #492495 #6130C7

Accessibility & contrast

On white

14.53
#311864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311864
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311864#FFFFFF#000000##FFFFFF
##3118641.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311864;
/* rgb */ color: rgb(49, 24, 100);
/* oklch */ color: oklch(29.5% 0.125 292.0);
Tailwind
colors: {
  custom: {
    50: '#6f5791',
    500: '#311864',
    950: '#000000',
  },
}
SCSS
$custom: #311864;
$custom-light: #6f5791;
$custom-dark: #000000;
JSON
{
  "hex": "#311864",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 259.737,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29535,
    "c": 0.12485,
    "h": 292
  },
  "luminance": 0.02226
}

Semantic roles & 50–950 ramp

primary
#311864
secondary
#7C9A3E
accent
#E443AF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311864

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

Preview Lab → · Contrast checker → · Palette generator →

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