#311466#311466

#311466 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.132 H 292.3°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#311466
RGBrgb(49, 20, 102)
HSLhsl(261, 67%, 24%)
HSVhsv(261, 80%, 40%)
CMYKcmyk(52%, 80.4%, 0%, 60%)
CIE-LABlab(16.07, 34.45, -42.61)
CIE-LCHlch(16.07, 54.79, 308.96°)
OKLaboklab(29.2% 0.0501 -0.1223)
OKLCHoklch(29.2% 0.132 292.3)
XYZxyz(3.9144, 2.1124, 12.7693)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311466 #496614
analogous
#142066 #311466 #5A1466
triadic
#311466 #663114 #146631
tetradic
#311466 #661420 #496614 #14665A
square
#311466 #661420 #496614 #14665A
split-complementary
#311466 #665A14 #206614
monochromatic
#0C051A #180A33 #311466 #4A1E99 #6228CC

Accessibility & contrast

On white

14.76
#311466 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311466
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311466#FFFFFF#000000##FFFFFF
##3114661.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311466;
/* rgb */ color: rgb(49, 20, 102);
/* oklch */ color: oklch(29.2% 0.132 292.3);
Tailwind
colors: {
  custom: {
    50: '#705592',
    500: '#311466',
    950: '#000000',
  },
}
SCSS
$custom: #311466;
$custom-light: #705592;
$custom-dark: #000000;
JSON
{
  "hex": "#311466",
  "rgb": {
    "r": 49,
    "g": 20,
    "b": 102
  },
  "hsl": {
    "h": 261.22,
    "s": 67.213,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29196,
    "c": 0.13215,
    "h": 292.3
  },
  "luminance": 0.02113
}

Semantic roles & 50–950 ramp

primary
#311466
secondary
#7A9D39
accent
#EA3EAD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311466

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

Preview Lab → · Contrast checker → · Palette generator →

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