#311B59#311B59

#311B59 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.0% C 0.106 H 295.3°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#311B59
RGBrgb(49, 27, 89)
HSLhsl(261, 53%, 23%)
HSVhsv(261, 70%, 35%)
CMYKcmyk(44.9%, 69.7%, 0%, 65.1%)
CIE-LABlab(16.30, 26.53, -33.59)
CIE-LCHlch(16.30, 42.80, 308.30°)
OKLaboklab(28.99% 0.0453 -0.0959)
OKLCHoklch(28.99% 0.106 295.3)
XYZxyz(3.4613, 2.1580, 9.6834)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B59 #43591B
analogous
#1B2459 #311B59 #501B59
triadic
#311B59 #59311B #1B5931
tetradic
#311B59 #591B24 #43591B #1B5950
square
#311B59 #591B24 #43591B #1B5950
split-complementary
#311B59 #59501B #24591B
monochromatic
#0D0717 #170D2A #311B59 #4B2988 #6537B7

Accessibility & contrast

On white

14.67
#311B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#311B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B59
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B59#FFFFFF#000000##FFFFFF
##311B591.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295B
Deuteranopia (green-blind)
#002758
Tritanopia (blue-blind)
#272937
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311b59;
/* rgb */ color: rgb(49, 27, 89);
/* oklch */ color: oklch(29.0% 0.106 295.3);
Tailwind
colors: {
  custom: {
    50: '#6d5988',
    500: '#311b59',
    950: '#000000',
  },
}
SCSS
$custom: #311b59;
$custom-light: #6d5988;
$custom-dark: #000000;
JSON
{
  "hex": "#311b59",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 261.29,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28988,
    "c": 0.10603,
    "h": 295.3
  },
  "luminance": 0.02158
}

Semantic roles & 50–950 ramp

primary
#311B59
secondary
#738F41
accent
#DD4BA9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311B59

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

Preview Lab → · Contrast checker → · Palette generator →

#311B59 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva