#311346#311346

#311346 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.1% C 0.093 H 308.3°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#311346
RGBrgb(49, 19, 70)
HSLhsl(275, 57%, 17%)
HSVhsv(275, 73%, 27%)
CMYKcmyk(30%, 72.9%, 0%, 72.5%)
CIE-LABlab(12.99, 25.79, -25.94)
CIE-LCHlch(12.99, 36.58, 314.83°)
OKLaboklab(26.11% 0.0579 -0.0733)
OKLCHoklch(26.11% 0.093 308.3)
XYZxyz(2.6048, 1.5609, 5.9572)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311346 #284613
analogous
#181346 #311346 #461342
triadic
#311346 #463113 #134631
tetradic
#311346 #461813 #284613 #134246
square
#311346 #461813 #284613 #134246
split-complementary
#311346 #424613 #134618
monochromatic
#110718 #110718 #311346 #532076 #742DA6

Accessibility & contrast

On white

16.00
#311346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311346
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311346#FFFFFF#000000##FFFFFF
##3113461.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#0A2245
Tritanopia (blue-blind)
#2E1E2A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #311346;
/* rgb */ color: rgb(49, 19, 70);
/* oklch */ color: oklch(26.1% 0.093 308.3);
Tailwind
colors: {
  custom: {
    50: '#6b537a',
    500: '#311346',
    950: '#000000',
  },
}
SCSS
$custom: #311346;
$custom-light: #6b537a;
$custom-dark: #000000;
JSON
{
  "hex": "#311346",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 70
  },
  "hsl": {
    "h": 275.294,
    "s": 57.303,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26114,
    "c": 0.09344,
    "h": 308.3
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#311346
secondary
#547F36
accent
#E14786
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#070209
muted
#7A787B

Preview Lab

Preview with #311346

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

Preview Lab → · Contrast checker → · Palette generator →

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