#311055#311055

#311055 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.116 H 300.4°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#311055
RGBrgb(49, 16, 85)
HSLhsl(269, 68%, 20%)
HSVhsv(269, 81%, 33%)
CMYKcmyk(42.4%, 81.2%, 0%, 66.7%)
CIE-LABlab(13.71, 31.56, -35.10)
CIE-LCHlch(13.71, 47.20, 311.96°)
OKLaboklab(27.03% 0.0588 -0.1003)
OKLCHoklch(27.03% 0.116 300.4)
XYZxyz(3.0912, 1.6794, 8.7539)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311055 #345510
analogous
#101155 #311055 #541055
triadic
#311055 #553110 #105531
tetradic
#311055 #551011 #345510 #105554
square
#311055 #551011 #345510 #105554
split-complementary
#311055 #555410 #115510
monochromatic
#0F051A #130621 #311055 #4F1A89 #6C23BC

Accessibility & contrast

On white

15.72
#311055 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#311055 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311055
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311055#FFFFFF#000000##FFFFFF
##3110551.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002357
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#292232
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #311055;
/* rgb */ color: rgb(49, 16, 85);
/* oklch */ color: oklch(27.0% 0.116 300.4);
Tailwind
colors: {
  custom: {
    50: '#6d5285',
    500: '#311055',
    950: '#000000',
  },
}
SCSS
$custom: #311055;
$custom-light: #6d5285;
$custom-dark: #000000;
JSON
{
  "hex": "#311055",
  "rgb": {
    "r": 49,
    "g": 16,
    "b": 85
  },
  "hsl": {
    "h": 268.696,
    "s": 68.317,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2703,
    "c": 0.1162,
    "h": 300.4
  },
  "luminance": 0.01679
}

Semantic roles & 50–950 ramp

primary
#311055
secondary
#628F32
accent
#EB3D98
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #311055

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

Preview Lab → · Contrast checker → · Palette generator →

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