#311554#311554

#311554 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.108 H 299.6°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#311554
RGBrgb(49, 21, 84)
HSLhsl(267, 60%, 21%)
HSVhsv(267, 75%, 33%)
CMYKcmyk(41.7%, 75%, 0%, 67.1%)
CIE-LABlab(14.57, 28.60, -33.02)
CIE-LCHlch(14.57, 43.69, 310.89°)
OKLaboklab(27.61% 0.0534 -0.0942)
OKLCHoklch(27.61% 0.108 299.6)
XYZxyz(3.1346, 1.8294, 8.5737)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311554 #385415
analogous
#151854 #311554 #501554
triadic
#311554 #543115 #155431
tetradic
#311554 #541518 #385415 #155450
square
#311554 #541518 #385415 #155450
split-complementary
#311554 #545015 #185415
monochromatic
#0E0618 #140923 #311554 #4E2185 #6A2DB6

Accessibility & contrast

On white

15.38
#311554 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#311554 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311554
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311554#FFFFFF#000000##FFFFFF
##3115541.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002556
Deuteranopia (green-blind)
#002453
Tritanopia (blue-blind)
#292432
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #311554;
/* rgb */ color: rgb(49, 21, 84);
/* oklch */ color: oklch(27.6% 0.108 299.6);
Tailwind
colors: {
  custom: {
    50: '#6d5585',
    500: '#311554',
    950: '#000000',
  },
}
SCSS
$custom: #311554;
$custom-light: #6d5585;
$custom-dark: #000000;
JSON
{
  "hex": "#311554",
  "rgb": {
    "r": 49,
    "g": 21,
    "b": 84
  },
  "hsl": {
    "h": 266.667,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2761,
    "c": 0.10828,
    "h": 299.6
  },
  "luminance": 0.01829
}

Semantic roles & 50–950 ramp

primary
#311554
secondary
#678C39
accent
#E3459D
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311554

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

Preview Lab → · Contrast checker → · Palette generator →

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