#311464#311464

#311464 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.130 H 293.0°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#311464
RGBrgb(49, 20, 100)
HSLhsl(262, 67%, 24%)
HSVhsv(262, 80%, 39%)
CMYKcmyk(51%, 80%, 0%, 60.8%)
CIE-LABlab(15.87, 33.86, -41.62)
CIE-LCHlch(15.87, 53.65, 309.13°)
OKLaboklab(28.99% 0.0506 -0.1194)
OKLCHoklch(28.99% 0.13 293)
XYZxyz(3.8164, 2.0733, 12.2532)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311464 #476414
analogous
#141F64 #311464 #591464
triadic
#311464 #643114 #146431
tetradic
#311464 #64141F #476414 #146459
square
#311464 #64141F #476414 #146459
split-complementary
#311464 #645914 #1F6414
monochromatic
#0C051A #180A31 #311464 #4A1E97 #6328CA

Accessibility & contrast

On white

14.85
#311464 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311464 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311464
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311464#FFFFFF#000000##FFFFFF
##3114641.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#212A3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311464;
/* rgb */ color: rgb(49, 20, 100);
/* oklch */ color: oklch(29.0% 0.130 293.0);
Tailwind
colors: {
  custom: {
    50: '#6f5591',
    500: '#311464',
    950: '#000000',
  },
}
SCSS
$custom: #311464;
$custom-light: #6f5591;
$custom-dark: #000000;
JSON
{
  "hex": "#311464",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 100
  },
  "hsl": {
    "h": 261.75,
    "s": 66.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28995,
    "c": 0.12969,
    "h": 293
  },
  "luminance": 0.02073
}

Semantic roles & 50–950 ramp

primary
#311464
secondary
#779B38
accent
#EA3EAB
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311464

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

Preview Lab → · Contrast checker → · Palette generator →

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