#311650#311650

#311650 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.102 H 301.3°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#311650
RGBrgb(49, 22, 80)
HSLhsl(268, 57%, 20%)
HSVhsv(268, 73%, 31%)
CMYKcmyk(38.8%, 72.5%, 0%, 68.6%)
CIE-LABlab(14.43, 26.85, -30.51)
CIE-LCHlch(14.43, 40.65, 311.35°)
OKLaboklab(27.41% 0.0528 -0.0868)
OKLCHoklch(27.41% 0.102 301.3)
XYZxyz(3.0012, 1.8060, 7.7783)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311650 #355016
analogous
#161850 #311650 #4E1650
triadic
#311650 #503116 #165031
tetradic
#311650 #501618 #355016 #16504E
square
#311650 #501618 #355016 #16504E
split-complementary
#311650 #504E16 #185016
monochromatic
#0F0718 #140920 #311650 #4E2380 #6C30B0

Accessibility & contrast

On white

15.43
#311650 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#311650 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311650
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311650#FFFFFF#000000##FFFFFF
##3116501.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#2A2330
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311650;
/* rgb */ color: rgb(49, 22, 80);
/* oklch */ color: oklch(27.4% 0.102 301.3);
Tailwind
colors: {
  custom: {
    50: '#6c5581',
    500: '#311650',
    950: '#000000',
  },
}
SCSS
$custom: #311650;
$custom-light: #6c5581;
$custom-dark: #000000;
JSON
{
  "hex": "#311650",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 80
  },
  "hsl": {
    "h": 267.931,
    "s": 56.863,
    "l": 20
  },
  "oklch": {
    "l": 0.27409,
    "c": 0.1016,
    "h": 301.3
  },
  "luminance": 0.01806
}

Semantic roles & 50–950 ramp

primary
#311650
secondary
#64873A
accent
#E04899
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311650

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

Preview Lab → · Contrast checker → · Palette generator →

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