#311762#311762

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

Color values

HEX#311762
RGBrgb(49, 23, 98)
HSLhsl(261, 62%, 24%)
HSVhsv(261, 77%, 38%)
CMYKcmyk(50%, 76.5%, 0%, 61.6%)
CIE-LABlab(16.24, 31.65, -39.68)
CIE-LCHlch(16.24, 50.75, 308.57°)
OKLaboklab(29.2% 0.0483 -0.1137)
OKLCHoklch(29.2% 0.124 293)
XYZxyz(3.7770, 2.1475, 11.7684)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311762 #486217
analogous
#172262 #311762 #561762
triadic
#311762 #623117 #176231
tetradic
#311762 #621722 #486217 #176256
square
#311762 #621722 #486217 #176256
split-complementary
#311762 #625617 #226217
monochromatic
#0C0619 #180B30 #311762 #4A2394 #632EC5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##311762#FFFFFF#000000##FFFFFF
##3117621.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)
#002964
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#222A3B
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311762;
/* rgb */ color: rgb(49, 23, 98);
/* oklch */ color: oklch(29.2% 0.124 293.0);
Tailwind
colors: {
  custom: {
    50: '#6f578f',
    500: '#311762',
    950: '#000000',
  },
}
SCSS
$custom: #311762;
$custom-light: #6f578f;
$custom-dark: #000000;
JSON
{
  "hex": "#311762",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 98
  },
  "hsl": {
    "h": 260.8,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29201,
    "c": 0.12355,
    "h": 293
  },
  "luminance": 0.02148
}

Semantic roles & 50–950 ramp

primary
#311762
secondary
#79993C
accent
#E543AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #311762

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

Preview Lab → · Contrast checker → · Palette generator →

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