#311C52#311C52

#311C52 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.095 H 298.1°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#311C52
RGBrgb(49, 28, 82)
HSLhsl(263, 49%, 22%)
HSVhsv(263, 66%, 32%)
CMYKcmyk(40.2%, 65.9%, 0%, 67.8%)
CIE-LABlab(15.97, 23.74, -29.40)
CIE-LCHlch(15.97, 37.79, 308.92°)
OKLaboklab(28.57% 0.0446 -0.0835)
OKLCHoklch(28.57% 0.095 298.1)
XYZxyz(3.2045, 2.0926, 8.2161)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C52 #3D521C
analogous
#1C2252 #311C52 #4C1C52
triadic
#311C52 #52311C #1C5231
tetradic
#311C52 #521C22 #3D521C #1C524C
square
#311C52 #521C22 #3D521C #1C524C
split-complementary
#311C52 #524C1C #22521C
monochromatic
#0E0817 #160C24 #311C52 #4C2C80 #683BAD

Accessibility & contrast

On white

14.80
#311C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#311C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C52
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C52#FFFFFF#000000##FFFFFF
##311C521.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#072751
Tritanopia (blue-blind)
#292834
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #311c52;
/* rgb */ color: rgb(49, 28, 82);
/* oklch */ color: oklch(28.6% 0.095 298.1);
Tailwind
colors: {
  custom: {
    50: '#6c5983',
    500: '#311c52',
    950: '#000000',
  },
}
SCSS
$custom: #311c52;
$custom-light: #6c5983;
$custom-dark: #000000;
JSON
{
  "hex": "#311c52",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 82
  },
  "hsl": {
    "h": 263.333,
    "s": 49.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2857,
    "c": 0.09468,
    "h": 298.1
  },
  "luminance": 0.02093
}

Semantic roles & 50–950 ramp

primary
#311C52
secondary
#6D8842
accent
#D94FA3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311C52

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

Preview Lab → · Contrast checker → · Palette generator →

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