#311B53#311B53

#311B53 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.098 H 298.0°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#311B53
RGBrgb(49, 27, 83)
HSLhsl(264, 51%, 22%)
HSVhsv(264, 67%, 33%)
CMYKcmyk(41%, 67.5%, 0%, 67.5%)
CIE-LABlab(15.81, 24.68, -30.34)
CIE-LCHlch(15.81, 39.11, 309.13°)
OKLaboklab(28.48% 0.0459 -0.0863)
OKLCHoklch(28.48% 0.098 298)
XYZxyz(3.2195, 2.0613, 8.4102)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B53 #3D531B
analogous
#1B2153 #311B53 #4D1B53
triadic
#311B53 #53311B #1B5331
tetradic
#311B53 #531B21 #3D531B #1B534D
square
#311B53 #531B21 #3D531B #1B534D
split-complementary
#311B53 #534D1B #21531B
monochromatic
#0E0817 #160C25 #311B53 #4C2A81 #6839AF

Accessibility & contrast

On white

14.87
#311B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#311B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B53
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B53#FFFFFF#000000##FFFFFF
##311B531.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002755
Deuteranopia (green-blind)
#032752
Tritanopia (blue-blind)
#292734
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311b53;
/* rgb */ color: rgb(49, 27, 83);
/* oklch */ color: oklch(28.5% 0.098 298.0);
Tailwind
colors: {
  custom: {
    50: '#6c5884',
    500: '#311b53',
    950: '#000000',
  },
}
SCSS
$custom: #311b53;
$custom-light: #6c5884;
$custom-dark: #000000;
JSON
{
  "hex": "#311b53",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 263.571,
    "s": 50.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28478,
    "c": 0.09773,
    "h": 298
  },
  "luminance": 0.02061
}

Semantic roles & 50–950 ramp

primary
#311B53
secondary
#6D8941
accent
#DA4DA3
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311B53

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

Preview Lab → · Contrast checker → · Palette generator →

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