#311688#311688

#311688 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.171 H 282.6°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#311688
RGBrgb(49, 22, 136)
HSLhsl(254, 72%, 31%)
HSVhsv(254, 84%, 53%)
CMYKcmyk(64%, 83.8%, 0%, 46.7%)
CIE-LABlab(20.06, 43.61, -57.88)
CIE-LCHlch(20.06, 72.48, 307.00°)
OKLaboklab(33.07% 0.0373 -0.167)
OKLCHoklch(33.07% 0.171 282.6)
XYZxyz(5.9961, 3.0039, 23.5516)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311688 #6D8816
analogous
#163488 #311688 #6A1688
triadic
#311688 #883116 #168831
tetradic
#311688 #881634 #6D8816 #16886A
square
#311688 #881634 #6D8816 #16886A
split-complementary
#311688 #886A16 #348816
monochromatic
#0B051F #1E0D53 #311688 #441FBD #6139DF

Accessibility & contrast

On white

13.12
#311688 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#311688 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311688
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311688#FFFFFF#000000##FFFFFF
##3116881.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348B
Deuteranopia (green-blind)
#002C86
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311688;
/* rgb */ color: rgb(49, 22, 136);
/* oklch */ color: oklch(33.1% 0.171 282.6);
Tailwind
colors: {
  custom: {
    50: '#7658ac',
    500: '#311688',
    950: '#000000',
  },
}
SCSS
$custom: #311688;
$custom-light: #7658ac;
$custom-dark: #000000;
JSON
{
  "hex": "#311688",
  "rgb": {
    "r": 49,
    "g": 22,
    "b": 136
  },
  "hsl": {
    "h": 254.211,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33068,
    "c": 0.17108,
    "h": 282.6
  },
  "luminance": 0.03004
}

Semantic roles & 50–950 ramp

primary
#311688
secondary
#9EBC3E
accent
#EF39C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #311688

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

Preview Lab → · Contrast checker → · Palette generator →

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