#311D53#311D53

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

Color values

HEX#311D53
RGBrgb(49, 29, 83)
HSLhsl(262, 48%, 22%)
HSVhsv(262, 65%, 33%)
CMYKcmyk(41%, 65.1%, 0%, 67.5%)
CIE-LABlab(16.29, 23.40, -29.56)
CIE-LCHlch(16.29, 37.70, 308.37°)
OKLaboklab(28.83% 0.0431 -0.084)
OKLCHoklch(28.83% 0.094 297.2)
XYZxyz(3.2669, 2.1562, 8.4260)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D53 #3F531D
analogous
#1D2453 #311D53 #4C1D53
triadic
#311D53 #53311D #1D5331
tetradic
#311D53 #531D24 #3F531D #1D534C
square
#311D53 #531D24 #3F531D #1D534C
split-complementary
#311D53 #534C1D #24531D
monochromatic
#0D0817 #160D26 #311D53 #4C2D80 #673DAE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##311D53#FFFFFF#000000##FFFFFF
##311D531.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)
#002955
Deuteranopia (green-blind)
#072852
Tritanopia (blue-blind)
#292934
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311d53;
/* rgb */ color: rgb(49, 29, 83);
/* oklch */ color: oklch(28.8% 0.094 297.2);
Tailwind
colors: {
  custom: {
    50: '#6c5a84',
    500: '#311d53',
    950: '#000000',
  },
}
SCSS
$custom: #311d53;
$custom-light: #6c5a84;
$custom-dark: #000000;
JSON
{
  "hex": "#311d53",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 83
  },
  "hsl": {
    "h": 262.222,
    "s": 48.214,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28828,
    "c": 0.09444,
    "h": 297.2
  },
  "luminance": 0.02156
}

Semantic roles & 50–950 ramp

primary
#311D53
secondary
#6F8844
accent
#D850A6
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #311D53

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

Preview Lab → · Contrast checker → · Palette generator →

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