#311552#311552

#311552 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.106 H 300.6°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#311552
RGBrgb(49, 21, 82)
HSLhsl(268, 59%, 20%)
HSVhsv(268, 74%, 32%)
CMYKcmyk(40.2%, 74.4%, 0%, 67.8%)
CIE-LABlab(14.39, 28.02, -31.95)
CIE-LCHlch(14.39, 42.49, 311.25°)
OKLaboklab(27.43% 0.0538 -0.091)
OKLCHoklch(27.43% 0.106 300.6)
XYZxyz(3.0574, 1.7985, 8.1671)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311552 #365215
analogous
#151852 #311552 #4F1552
triadic
#311552 #523115 #155231
tetradic
#311552 #521518 #365215 #15524F
square
#311552 #521518 #365215 #15524F
split-complementary
#311552 #524F15 #185215
monochromatic
#0F0618 #140921 #311552 #4E2183 #6B2EB3

Accessibility & contrast

On white

15.45
#311552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#311552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311552
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311552#FFFFFF#000000##FFFFFF
##3115521.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#2A2331
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #311552;
/* rgb */ color: rgb(49, 21, 82);
/* oklch */ color: oklch(27.4% 0.106 300.6);
Tailwind
colors: {
  custom: {
    50: '#6d5583',
    500: '#311552',
    950: '#000000',
  },
}
SCSS
$custom: #311552;
$custom-light: #6d5583;
$custom-dark: #000000;
JSON
{
  "hex": "#311552",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 267.541,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27432,
    "c": 0.1057,
    "h": 300.6
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#311552
secondary
#658A39
accent
#E2459A
background
#F6F5F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311552

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

Preview Lab → · Contrast checker → · Palette generator →

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