#311B7D#311B7D

#311B7D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.153 H 284.2°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#311B7D
RGBrgb(49, 27, 125)
HSLhsl(253, 64%, 30%)
HSVhsv(253, 78%, 49%)
CMYKcmyk(60.8%, 78.4%, 0%, 51%)
CIE-LABlab(19.71, 37.81, -51.51)
CIE-LCHlch(19.71, 63.90, 306.28°)
OKLaboklab(32.47% 0.0376 -0.1484)
OKLCHoklch(32.47% 0.153 284.2)
XYZxyz(5.3591, 2.9172, 19.6787)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B7D #677D1B
analogous
#1B367D #311B7D #621B7D
triadic
#311B7D #7D311B #1B7D31
tetradic
#311B7D #7D1B36 #677D1B #1B7D62
square
#311B7D #7D1B36 #677D1B #1B7D62
split-complementary
#311B7D #7D621B #367D1B
monochromatic
#0A0519 #1D104B #311B7D #4526AF #5F3DD5

Accessibility & contrast

On white

13.26
#311B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#311B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B7D
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B7D#FFFFFF#000000##FFFFFF
##311B7D1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#03374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #311b7d;
/* rgb */ color: rgb(49, 27, 125);
/* oklch */ color: oklch(32.5% 0.153 284.2);
Tailwind
colors: {
  custom: {
    50: '#735aa4',
    500: '#311b7d',
    950: '#000000',
  },
}
SCSS
$custom: #311b7d;
$custom-light: #735aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#311b7d",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 253.469,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32467,
    "c": 0.15311,
    "h": 284.2
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#311B7D
secondary
#98B143
accent
#E740C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #311B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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