#311364#311364

#311364 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.131 H 293.2°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#311364
RGBrgb(49, 19, 100)
HSLhsl(262, 68%, 23%)
HSVhsv(262, 81%, 39%)
CMYKcmyk(51%, 81%, 0%, 60.8%)
CIE-LABlab(15.69, 34.37, -41.91)
CIE-LCHlch(15.69, 54.20, 309.35°)
OKLaboklab(28.87% 0.0515 -0.1202)
OKLCHoklch(28.87% 0.131 293.2)
XYZxyz(3.7991, 2.0387, 12.2475)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311364 #466413
analogous
#131D64 #311364 #591364
triadic
#311364 #643113 #136431
tetradic
#311364 #64131D #466413 #136459
square
#311364 #64131D #466413 #136459
split-complementary
#311364 #645913 #1D6413
monochromatic
#0D051A #180931 #311364 #4A1D97 #6327CB

Accessibility & contrast

On white

14.92
#311364 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311364
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311364#FFFFFF#000000##FFFFFF
##3113641.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311364;
/* rgb */ color: rgb(49, 19, 100);
/* oklch */ color: oklch(28.9% 0.131 293.2);
Tailwind
colors: {
  custom: {
    50: '#6f5491',
    500: '#311364',
    950: '#000000',
  },
}
SCSS
$custom: #311364;
$custom-light: #6f5491;
$custom-dark: #000000;
JSON
{
  "hex": "#311364",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 100
  },
  "hsl": {
    "h": 262.222,
    "s": 68.067,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28871,
    "c": 0.13083,
    "h": 293.2
  },
  "luminance": 0.02039
}

Semantic roles & 50–950 ramp

primary
#311364
secondary
#769C37
accent
#EB3DAA
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311364

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

Preview Lab → · Contrast checker → · Palette generator →

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