#311550#311550

#311550 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.103 H 301.6°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#311550
RGBrgb(49, 21, 80)
HSLhsl(268, 58%, 20%)
HSVhsv(268, 74%, 31%)
CMYKcmyk(38.8%, 73.7%, 0%, 68.6%)
CIE-LABlab(14.22, 27.44, -30.86)
CIE-LCHlch(14.22, 41.29, 311.64°)
OKLaboklab(27.26% 0.0541 -0.0878)
OKLCHoklch(27.26% 0.103 301.6)
XYZxyz(2.9824, 1.7685, 7.7721)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311550 #345015
analogous
#151650 #311550 #4F1550
triadic
#311550 #503115 #155031
tetradic
#311550 #501516 #345015 #15504F
square
#311550 #501516 #345015 #15504F
split-complementary
#311550 #504F15 #165015
monochromatic
#0F0618 #130820 #311550 #4F2280 #6C2EB1

Accessibility & contrast

On white

15.51
#311550 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311550
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311550#FFFFFF#000000##FFFFFF
##3115501.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002452
Deuteranopia (green-blind)
#00244F
Tritanopia (blue-blind)
#2A2330
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311550;
/* rgb */ color: rgb(49, 21, 80);
/* oklch */ color: oklch(27.3% 0.103 301.6);
Tailwind
colors: {
  custom: {
    50: '#6c5582',
    500: '#311550',
    950: '#000000',
  },
}
SCSS
$custom: #311550;
$custom-light: #6c5582;
$custom-dark: #000000;
JSON
{
  "hex": "#311550",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 80
  },
  "hsl": {
    "h": 268.475,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.27257,
    "c": 0.10312,
    "h": 301.6
  },
  "luminance": 0.01768
}

Semantic roles & 50–950 ramp

primary
#311550
secondary
#628839
accent
#E24698
background
#F6F5F7
surface
#ECE8EE
border
#C7C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311550

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

Preview Lab → · Contrast checker → · Palette generator →

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