#311B4E#311B4E

#311B4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.091 H 300.5°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#311B4E
RGBrgb(49, 27, 78)
HSLhsl(266, 49%, 21%)
HSVhsv(266, 65%, 31%)
CMYKcmyk(37.2%, 65.4%, 0%, 69.4%)
CIE-LABlab(15.42, 23.18, -27.56)
CIE-LCHlch(15.42, 36.01, 310.06°)
OKLaboklab(28.07% 0.0461 -0.0781)
OKLCHoklch(28.07% 0.091 300.5)
XYZxyz(3.0334, 1.9869, 7.4299)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B4E #384E1B
analogous
#1B1F4E #311B4E #4A1B4E
triadic
#311B4E #4E311B #1B4E31
tetradic
#311B4E #4E1B1F #384E1B #1B4E4A
square
#311B4E #4E1B1F #384E1B #1B4E4A
split-complementary
#311B4E #4E4A1B #1F4E1B
monochromatic
#0E0817 #140B21 #311B4E #4E2B7B #6A3AA9

Accessibility & contrast

On white

15.03
#311B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#311B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B4E
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B4E#FFFFFF#000000##FFFFFF
##311B4E1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022650
Deuteranopia (green-blind)
#0B264D
Tritanopia (blue-blind)
#2B2631
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #311b4e;
/* rgb */ color: rgb(49, 27, 78);
/* oklch */ color: oklch(28.1% 0.091 300.5);
Tailwind
colors: {
  custom: {
    50: '#6c5880',
    500: '#311b4e',
    950: '#000000',
  },
}
SCSS
$custom: #311b4e;
$custom-light: #6c5880;
$custom-dark: #000000;
JSON
{
  "hex": "#311b4e",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 265.882,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28072,
    "c": 0.09072,
    "h": 300.5
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#311B4E
secondary
#678441
accent
#D8509D
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #311B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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