#311D59#311D59

#311D59 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.3% C 0.103 H 294.5°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#311D59
RGBrgb(49, 29, 89)
HSLhsl(260, 51%, 23%)
HSVhsv(260, 67%, 35%)
CMYKcmyk(44.9%, 67.4%, 0%, 65.1%)
CIE-LABlab(16.76, 25.27, -32.83)
CIE-LCHlch(16.76, 41.43, 307.58°)
OKLaboklab(29.33% 0.0428 -0.0936)
OKLCHoklch(29.33% 0.103 294.5)
XYZxyz(3.5087, 2.2529, 9.6992)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D59 #45591D
analogous
#1D2759 #311D59 #4F1D59
triadic
#311D59 #59311D #1D5931
tetradic
#311D59 #591D27 #45591D #1D594F
square
#311D59 #591D27 #45591D #1D594F
split-complementary
#311D59 #594F1D #27591D
monochromatic
#0D0817 #180E2B #311D59 #4A2C87 #643BB5

Accessibility & contrast

On white

14.48
#311D59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#311D59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D59
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D59#FFFFFF#000000##FFFFFF
##311D591.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#262B38
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #311d59;
/* rgb */ color: rgb(49, 29, 89);
/* oklch */ color: oklch(29.3% 0.103 294.5);
Tailwind
colors: {
  custom: {
    50: '#6d5a88',
    500: '#311d59',
    950: '#000000',
  },
}
SCSS
$custom: #311d59;
$custom-light: #6d5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#311d59",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 89
  },
  "hsl": {
    "h": 260,
    "s": 50.847,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29326,
    "c": 0.10295,
    "h": 294.5
  },
  "luminance": 0.02253
}

Semantic roles & 50–950 ramp

primary
#311D59
secondary
#758E44
accent
#DA4DAB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040B
muted
#7A797C

Preview Lab

Preview with #311D59

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

Preview Lab → · Contrast checker → · Palette generator →

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