#311656#311656

#311656 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.109 H 298.3°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#311656
RGBrgb(49, 22, 86)
HSLhsl(265, 59%, 21%)
HSVhsv(265, 74%, 34%)
CMYKcmyk(43%, 74.4%, 0%, 66.3%)
CIE-LABlab(14.95, 28.61, -33.76)
CIE-LCHlch(14.95, 44.26, 310.28°)
OKLaboklab(27.94% 0.0519 -0.0963)
OKLCHoklch(27.94% 0.109 298.3)
XYZxyz(3.2328, 1.8986, 8.9984)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311656 #3B5616
analogous
#161B56 #311656 #511656
triadic
#311656 #563116 #165631
tetradic
#311656 #56161B #3B5616 #165651
square
#311656 #56161B #3B5616 #165651
split-complementary
#311656 #565116 #1B5616
monochromatic
#0E0618 #150A25 #311656 #4D2287 #692FB7

Accessibility & contrast

On white

15.22
#311656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#311656 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311656
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311656#FFFFFF#000000##FFFFFF
##3116561.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#282534
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #311656;
/* rgb */ color: rgb(49, 22, 86);
/* oklch */ color: oklch(27.9% 0.109 298.3);
Tailwind
colors: {
  custom: {
    50: '#6d5586',
    500: '#311656',
    950: '#000000',
  },
}
SCSS
$custom: #311656;
$custom-light: #6d5586;
$custom-dark: #000000;
JSON
{
  "hex": "#311656",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 86
  },
  "hsl": {
    "h": 265.313,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27937,
    "c": 0.10942,
    "h": 298.3
  },
  "luminance": 0.01899
}

Semantic roles & 50–950 ramp

primary
#311656
secondary
#6A8D3A
accent
#E245A0
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311656

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

Preview Lab → · Contrast checker → · Palette generator →

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