#311665#311665

#311665 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.129 H 292.2°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#311665
RGBrgb(49, 22, 101)
HSLhsl(261, 64%, 24%)
HSVhsv(261, 78%, 40%)
CMYKcmyk(51.5%, 78.2%, 0%, 60.4%)
CIE-LABlab(16.34, 33.10, -41.51)
CIE-LCHlch(16.34, 53.09, 308.57°)
OKLaboklab(29.36% 0.0485 -0.1191)
OKLCHoklch(29.36% 0.129 292.2)
XYZxyz(3.9018, 2.1662, 12.5219)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311665 #4A6516
analogous
#162365 #311665 #591665
triadic
#311665 #653116 #166531
tetradic
#311665 #651623 #4A6516 #166559
square
#311665 #651623 #4A6516 #166559
split-complementary
#311665 #655916 #236516
monochromatic
#0C0519 #190B33 #311665 #492197 #622CCA

Accessibility & contrast

On white

14.65
#311665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311665
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311665#FFFFFF#000000##FFFFFF
##3116651.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A67
Deuteranopia (green-blind)
#002763
Tritanopia (blue-blind)
#202B3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311665;
/* rgb */ color: rgb(49, 22, 101);
/* oklch */ color: oklch(29.4% 0.129 292.2);
Tailwind
colors: {
  custom: {
    50: '#6f5692',
    500: '#311665',
    950: '#000000',
  },
}
SCSS
$custom: #311665;
$custom-light: #6f5692;
$custom-dark: #000000;
JSON
{
  "hex": "#311665",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 260.506,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.29356,
    "c": 0.12859,
    "h": 292.2
  },
  "luminance": 0.02166
}

Semantic roles & 50–950 ramp

primary
#311665
secondary
#7B9C3B
accent
#E741AE
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #311665

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

Preview Lab → · Contrast checker → · Palette generator →

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