#311353#311353

#311353 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.110 H 300.6°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#311353
RGBrgb(49, 19, 83)
HSLhsl(268, 63%, 20%)
HSVhsv(268, 77%, 33%)
CMYKcmyk(41%, 77.1%, 0%, 67.5%)
CIE-LABlab(14.08, 29.42, -33.14)
CIE-LCHlch(14.08, 44.32, 311.60°)
OKLaboklab(27.24% 0.056 -0.0945)
OKLCHoklch(27.24% 0.11 300.6)
XYZxyz(3.0604, 1.7432, 8.3572)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311353 #355313
analogous
#131553 #311353 #511353
triadic
#311353 #533113 #135331
tetradic
#311353 #531315 #355313 #135351
square
#311353 #531315 #355313 #135351
split-complementary
#311353 #535113 #155313
monochromatic
#0F0619 #140821 #311353 #4E1E85 #6C2AB7

Accessibility & contrast

On white

15.57
#311353 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#311353 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311353
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311353#FFFFFF#000000##FFFFFF
##3113531.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002355
Deuteranopia (green-blind)
#002352
Tritanopia (blue-blind)
#292331
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311353;
/* rgb */ color: rgb(49, 19, 83);
/* oklch */ color: oklch(27.2% 0.110 300.6);
Tailwind
colors: {
  custom: {
    50: '#6d5384',
    500: '#311353',
    950: '#000000',
  },
}
SCSS
$custom: #311353;
$custom-light: #6d5384;
$custom-dark: #000000;
JSON
{
  "hex": "#311353",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 83
  },
  "hsl": {
    "h": 268.125,
    "s": 62.745,
    "l": 20
  },
  "oklch": {
    "l": 0.27236,
    "c": 0.10983,
    "h": 300.6
  },
  "luminance": 0.01743
}

Semantic roles & 50–950 ramp

primary
#311353
secondary
#648B36
accent
#E64299
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311353

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

Preview Lab → · Contrast checker → · Palette generator →

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