#311B80#311B80

#311B80 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.157 H 283.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#311B80
RGBrgb(49, 27, 128)
HSLhsl(253, 65%, 30%)
HSVhsv(253, 79%, 50%)
CMYKcmyk(61.7%, 78.9%, 0%, 49.8%)
CIE-LABlab(20.02, 38.75, -52.90)
CIE-LCHlch(20.02, 65.57, 306.22°)
OKLaboklab(32.78% 0.0368 -0.1525)
OKLCHoklch(32.78% 0.157 283.6)
XYZxyz(5.5536, 2.9950, 20.7033)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B80 #6A801B
analogous
#1B3880 #311B80 #631B80
triadic
#311B80 #80311B #1B8031
tetradic
#311B80 #801B38 #6A801B #1B8063
square
#311B80 #801B38 #6A801B #1B8063
split-complementary
#311B80 #80631B #38801B
monochromatic
#0A061B #1E104D #311B80 #4426B3 #603FD6

Accessibility & contrast

On white

13.13
#311B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#311B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B80
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B80#FFFFFF#000000##FFFFFF
##311B801.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003383
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311b80;
/* rgb */ color: rgb(49, 27, 128);
/* oklch */ color: oklch(32.8% 0.157 283.6);
Tailwind
colors: {
  custom: {
    50: '#745ba6',
    500: '#311b80',
    950: '#000000',
  },
}
SCSS
$custom: #311b80;
$custom-light: #745ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#311b80",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 253.069,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32782,
    "c": 0.15684,
    "h": 283.6
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#311B80
secondary
#9BB443
accent
#E840C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311B80

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

Preview Lab → · Contrast checker → · Palette generator →

#311B80 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva