#311366#311366

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

Color values

HEX#311366
RGBrgb(49, 19, 102)
HSLhsl(262, 69%, 24%)
HSVhsv(262, 81%, 40%)
CMYKcmyk(52%, 81.4%, 0%, 60%)
CIE-LABlab(15.89, 34.95, -42.90)
CIE-LCHlch(15.89, 55.33, 309.17°)
OKLaboklab(29.07% 0.0509 -0.1231)
OKLCHoklch(29.07% 0.133 292.5)
XYZxyz(3.8971, 2.0779, 12.7635)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311366 #486613
analogous
#131E66 #311366 #5A1366
triadic
#311366 #663113 #136631
tetradic
#311366 #66131E #486613 #13665A
square
#311366 #66131E #486613 #13665A
split-complementary
#311366 #665A13 #1E6613
monochromatic
#0C051A #180932 #311366 #4A1D9A #6326CD

Accessibility & contrast

On white

14.83
#311366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#311366 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311366
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311366#FFFFFF#000000##FFFFFF
##3113661.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002664
Tritanopia (blue-blind)
#202A3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311366;
/* rgb */ color: rgb(49, 19, 102);
/* oklch */ color: oklch(29.1% 0.133 292.5);
Tailwind
colors: {
  custom: {
    50: '#705592',
    500: '#311366',
    950: '#000000',
  },
}
SCSS
$custom: #311366;
$custom-light: #705592;
$custom-dark: #000000;
JSON
{
  "hex": "#311366",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 261.687,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29073,
    "c": 0.13326,
    "h": 292.5
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#311366
secondary
#799D37
accent
#EB3CAC
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311366

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

Preview Lab → · Contrast checker → · Palette generator →

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