#311559#311559

#311559 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.115 H 297.2°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#311559
RGBrgb(49, 21, 89)
HSLhsl(265, 62%, 22%)
HSVhsv(265, 76%, 35%)
CMYKcmyk(44.9%, 76.4%, 0%, 65.1%)
CIE-LABlab(15.01, 30.07, -35.68)
CIE-LCHlch(15.01, 46.66, 310.12°)
OKLaboklab(28.07% 0.0524 -0.102)
OKLCHoklch(28.07% 0.115 297.2)
XYZxyz(3.3375, 1.9105, 9.6422)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311559 #3D5915
analogous
#151B59 #311559 #531559
triadic
#311559 #593115 #155931
tetradic
#311559 #59151B #3D5915 #155953
square
#311559 #59151B #3D5915 #155953
split-complementary
#311559 #595315 #1B5915
monochromatic
#0E0619 #160927 #311559 #4C218B #682CBC

Accessibility & contrast

On white

15.19
#311559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#311559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311559
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311559#FFFFFF#000000##FFFFFF
##3115591.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#272635
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311559;
/* rgb */ color: rgb(49, 21, 89);
/* oklch */ color: oklch(28.1% 0.115 297.2);
Tailwind
colors: {
  custom: {
    50: '#6d5588',
    500: '#311559',
    950: '#000000',
  },
}
SCSS
$custom: #311559;
$custom-light: #6d5588;
$custom-dark: #000000;
JSON
{
  "hex": "#311559",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 264.706,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28067,
    "c": 0.11467,
    "h": 297.2
  },
  "luminance": 0.01911
}

Semantic roles & 50–950 ramp

primary
#311559
secondary
#6D9139
accent
#E543A2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311559

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

Preview Lab → · Contrast checker → · Palette generator →

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