#311347#311347

#311347 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.095 H 307.6°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#311347
RGBrgb(49, 19, 71)
HSLhsl(275, 58%, 18%)
HSVhsv(275, 73%, 28%)
CMYKcmyk(31%, 73.2%, 0%, 72.2%)
CIE-LABlab(13.07, 26.06, -26.51)
CIE-LCHlch(13.07, 37.18, 314.51°)
OKLaboklab(26.2% 0.0578 -0.075)
OKLCHoklch(26.2% 0.095 307.6)
XYZxyz(2.6366, 1.5737, 6.1249)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311347 #294713
analogous
#171347 #311347 #471343
triadic
#311347 #473113 #134731
tetradic
#311347 #471713 #294713 #134347
square
#311347 #471713 #294713 #134347
split-complementary
#311347 #434713 #134717
monochromatic
#110618 #110618 #311347 #522077 #742DA8

Accessibility & contrast

On white

15.97
#311347 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#311347 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311347
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311347#FFFFFF#000000##FFFFFF
##3113471.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#082246
Tritanopia (blue-blind)
#2E1E2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311347;
/* rgb */ color: rgb(49, 19, 71);
/* oklch */ color: oklch(26.2% 0.095 307.6);
Tailwind
colors: {
  custom: {
    50: '#6b537b',
    500: '#311347',
    950: '#000000',
  },
}
SCSS
$custom: #311347;
$custom-light: #6b537b;
$custom-dark: #000000;
JSON
{
  "hex": "#311347",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 71
  },
  "hsl": {
    "h": 274.615,
    "s": 57.778,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26196,
    "c": 0.0947,
    "h": 307.6
  },
  "luminance": 0.01574
}

Semantic roles & 50–950 ramp

primary
#311347
secondary
#558036
accent
#E14788
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #311347

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

Preview Lab → · Contrast checker → · Palette generator →

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