#311235#311235

#311235 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.074 H 323.0°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#311235
RGBrgb(49, 18, 53)
HSLhsl(293, 49%, 14%)
HSVhsv(293, 66%, 21%)
CMYKcmyk(7.5%, 66%, 0%, 79.2%)
CIE-LABlab(11.57, 22.03, -16.14)
CIE-LCHlch(11.57, 27.31, 323.76°)
OKLaboklab(24.7% 0.0592 -0.0447)
OKLCHoklch(24.7% 0.074 323)
XYZxyz(2.1255, 1.3427, 3.5147)
Luminance0.0134 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311235 #163512
analogous
#201235 #311235 #351228
triadic
#311235 #353112 #123531
tetradic
#311235 #352012 #163512 #122835
square
#311235 #352012 #163512 #122835
split-complementary
#311235 #283512 #123520
monochromatic
#150817 #150817 #311235 #5B2263 #853190

Accessibility & contrast

On white

16.55
#311235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#311235 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311235
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311235#FFFFFF#000000##FFFFFF
##3112351.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1C36
Deuteranopia (green-blind)
#172034
Tritanopia (blue-blind)
#321721
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #311235;
/* rgb */ color: rgb(49, 18, 53);
/* oklch */ color: oklch(24.7% 0.074 323.0);
Tailwind
colors: {
  custom: {
    50: '#6a526c',
    500: '#311235',
    950: '#000000',
  },
}
SCSS
$custom: #311235;
$custom-light: #6a526c;
$custom-dark: #000000;
JSON
{
  "hex": "#311235",
  "rgb": {
    "r": 49,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 293.143,
    "s": 49.296,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24696,
    "c": 0.07422,
    "h": 323
  },
  "luminance": 0.01343
}

Semantic roles & 50–950 ramp

primary
#311235
secondary
#3C6D35
accent
#D94F5F
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060207
muted
#7A787A

Preview Lab

Preview with #311235

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

Preview Lab → · Contrast checker → · Palette generator →

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