#311B67#311B67

#311B67 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.125 H 290.2°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#311B67
RGBrgb(49, 27, 103)
HSLhsl(257, 58%, 25%)
HSVhsv(257, 74%, 40%)
CMYKcmyk(52.4%, 73.8%, 0%, 59.6%)
CIE-LABlab(17.53, 30.90, -40.86)
CIE-LCHlch(17.53, 51.23, 307.09°)
OKLaboklab(30.26% 0.0431 -0.1172)
OKLCHoklch(30.26% 0.125 290.2)
XYZxyz(4.1060, 2.4159, 13.0793)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B67 #51671B
analogous
#1B2B67 #311B67 #571B67
triadic
#311B67 #67311B #1B6731
tetradic
#311B67 #671B2B #51671B #1B6757
square
#311B67 #671B2B #51671B #1B6757
split-complementary
#311B67 #67571B #2B671B
monochromatic
#0C0618 #1A0E37 #311B67 #482897 #5F34C8

Accessibility & contrast

On white

14.16
#311B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#311B67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B67
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B67#FFFFFF#000000##FFFFFF
##311B671.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C69
Deuteranopia (green-blind)
#002966
Tritanopia (blue-blind)
#1F2E3F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #311b67;
/* rgb */ color: rgb(49, 27, 103);
/* oklch */ color: oklch(30.3% 0.125 290.2);
Tailwind
colors: {
  custom: {
    50: '#6f5993',
    500: '#311b67',
    950: '#000000',
  },
}
SCSS
$custom: #311b67;
$custom-light: #6f5993;
$custom-dark: #000000;
JSON
{
  "hex": "#311b67",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 257.368,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30264,
    "c": 0.12489,
    "h": 290.2
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#311B67
secondary
#829C42
accent
#E246B5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #311B67

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

Preview Lab → · Contrast checker → · Palette generator →

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