#311756#311756

#311756 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.108 H 298.0°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#311756
RGBrgb(49, 23, 86)
HSLhsl(265, 58%, 21%)
HSVhsv(265, 73%, 34%)
CMYKcmyk(43%, 73.3%, 0%, 66.3%)
CIE-LABlab(15.16, 28.03, -33.42)
CIE-LCHlch(15.16, 43.62, 309.99°)
OKLaboklab(28.09% 0.0507 -0.0953)
OKLCHoklch(28.09% 0.108 298)
XYZxyz(3.2523, 1.9376, 9.0049)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311756 #3C5617
analogous
#171D56 #311756 #511756
triadic
#311756 #563117 #175631
tetradic
#311756 #56171D #3C5617 #175651
square
#311756 #56171D #3C5617 #175651
split-complementary
#311756 #565117 #1D5617
monochromatic
#0E0618 #150A26 #311756 #4D2486 #6831B7

Accessibility & contrast

On white

15.13
#311756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#311756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311756
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311756#FFFFFF#000000##FFFFFF
##3117561.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311756;
/* rgb */ color: rgb(49, 23, 86);
/* oklch */ color: oklch(28.1% 0.108 298.0);
Tailwind
colors: {
  custom: {
    50: '#6d5686',
    500: '#311756',
    950: '#000000',
  },
}
SCSS
$custom: #311756;
$custom-light: #6d5686;
$custom-dark: #000000;
JSON
{
  "hex": "#311756",
  "rgb": {
    "r": 49,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 264.762,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28088,
    "c": 0.10797,
    "h": 298
  },
  "luminance": 0.01938
}

Semantic roles & 50–950 ramp

primary
#311756
secondary
#6B8D3C
accent
#E147A1
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #311756

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

Preview Lab → · Contrast checker → · Palette generator →

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