#311352#311352

#311352 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.109 H 301.2°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#311352
RGBrgb(49, 19, 82)
HSLhsl(269, 62%, 20%)
HSVhsv(269, 77%, 32%)
CMYKcmyk(40.2%, 76.8%, 0%, 67.8%)
CIE-LABlab(13.99, 29.14, -32.60)
CIE-LCHlch(13.99, 43.72, 311.79°)
OKLaboklab(27.15% 0.0562 -0.0929)
OKLCHoklch(27.15% 0.109 301.2)
XYZxyz(3.0221, 1.7279, 8.1553)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311352 #345213
analogous
#131552 #311352 #501352
triadic
#311352 #523113 #135231
tetradic
#311352 #521315 #345213 #135250
square
#311352 #521315 #345213 #135250
split-complementary
#311352 #525013 #155213
monochromatic
#0F0619 #130720 #311352 #4F1F84 #6C2AB5

Accessibility & contrast

On white

15.61
#311352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311352
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311352#FFFFFF#000000##FFFFFF
##3113521.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#2A2231
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311352;
/* rgb */ color: rgb(49, 19, 82);
/* oklch */ color: oklch(27.1% 0.109 301.2);
Tailwind
colors: {
  custom: {
    50: '#6d5383',
    500: '#311352',
    950: '#000000',
  },
}
SCSS
$custom: #311352;
$custom-light: #6d5383;
$custom-dark: #000000;
JSON
{
  "hex": "#311352",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 268.571,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27145,
    "c": 0.10858,
    "h": 301.2
  },
  "luminance": 0.01728
}

Semantic roles & 50–950 ramp

primary
#311352
secondary
#628A36
accent
#E54298
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311352

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

Preview Lab → · Contrast checker → · Palette generator →

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