#311054#311054

#311054 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.115 H 300.9°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#311054
RGBrgb(49, 16, 84)
HSLhsl(269, 68%, 20%)
HSVhsv(269, 81%, 33%)
CMYKcmyk(41.7%, 81%, 0%, 67.1%)
CIE-LABlab(13.61, 31.28, -34.58)
CIE-LCHlch(13.61, 46.62, 312.13°)
OKLaboklab(26.94% 0.059 -0.0987)
OKLCHoklch(26.94% 0.115 300.9)
XYZxyz(3.0518, 1.6636, 8.5461)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311054 #335410
analogous
#101154 #311054 #531054
triadic
#311054 #543110 #105431
tetradic
#311054 #541011 #335410 #105453
square
#311054 #541011 #335410 #105453
split-complementary
#311054 #545310 #115410
monochromatic
#0F051A #130621 #311054 #4F1A87 #6D24BB

Accessibility & contrast

On white

15.76
#311054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#311054 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311054
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311054#FFFFFF#000000##FFFFFF
##3110541.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#292131
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311054;
/* rgb */ color: rgb(49, 16, 84);
/* oklch */ color: oklch(26.9% 0.115 300.9);
Tailwind
colors: {
  custom: {
    50: '#6d5285',
    500: '#311054',
    950: '#000000',
  },
}
SCSS
$custom: #311054;
$custom-light: #6d5285;
$custom-dark: #000000;
JSON
{
  "hex": "#311054",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 84
  },
  "hsl": {
    "h": 269.118,
    "s": 68,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26935,
    "c": 0.11501,
    "h": 300.9
  },
  "luminance": 0.01664
}

Semantic roles & 50–950 ramp

primary
#311054
secondary
#618E32
accent
#EB3D96
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311054

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

Preview Lab → · Contrast checker → · Palette generator →

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