#311664#311664

#311664 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.127 H 292.5°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#311664
RGBrgb(49, 22, 100)
HSLhsl(261, 64%, 24%)
HSVhsv(261, 78%, 39%)
CMYKcmyk(51%, 78%, 0%, 60.8%)
CIE-LABlab(16.24, 32.80, -41.01)
CIE-LCHlch(16.24, 52.51, 308.65°)
OKLaboklab(29.26% 0.0488 -0.1176)
OKLCHoklch(29.26% 0.127 292.5)
XYZxyz(3.8531, 2.1468, 12.2655)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311664 #496416
analogous
#162264 #311664 #581664
triadic
#311664 #643116 #166431
tetradic
#311664 #641622 #496416 #166458
square
#311664 #641622 #496416 #166458
split-complementary
#311664 #645816 #226416
monochromatic
#0C0619 #180B32 #311664 #4A2196 #622CC8

Accessibility & contrast

On white

14.69
#311664 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#311664 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311664
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311664#FFFFFF#000000##FFFFFF
##3116641.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#212B3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311664;
/* rgb */ color: rgb(49, 22, 100);
/* oklch */ color: oklch(29.3% 0.127 292.5);
Tailwind
colors: {
  custom: {
    50: '#6f5691',
    500: '#311664',
    950: '#000000',
  },
}
SCSS
$custom: #311664;
$custom-light: #6f5691;
$custom-dark: #000000;
JSON
{
  "hex": "#311664",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 100
  },
  "hsl": {
    "h": 260.769,
    "s": 63.934,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29257,
    "c": 0.12734,
    "h": 292.5
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#311664
secondary
#7A9B3B
accent
#E741AD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311664

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

Preview Lab → · Contrast checker → · Palette generator →

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