#311B9F#311B9F

#311B9F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.194 H 278.1°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#311B9F
RGBrgb(49, 27, 159)
HSLhsl(250, 71%, 36%)
HSVhsv(250, 83%, 62%)
CMYKcmyk(69.2%, 83%, 0%, 37.6%)
CIE-LABlab(23.47, 48.21, -66.48)
CIE-LCHlch(23.47, 82.12, 305.95°)
OKLaboklab(36.2% 0.0273 -0.192)
OKLCHoklch(36.2% 0.194 278.1)
XYZxyz(7.9145, 3.9393, 33.1374)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311B9F #899F1B
analogous
#1B479F #311B9F #731B9F
triadic
#311B9F #9F311B #1B9F31
tetradic
#311B9F #9F1B47 #899F1B #1B9F73
square
#311B9F #9F1B47 #899F1B #1B9F73
split-complementary
#311B9F #9F731B #479F1B
monochromatic
#110936 #21126B #311B9F #4124D3 #6B53E2

Accessibility & contrast

On white

11.74
#311B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#311B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311B9F
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311B9F#FFFFFF#000000##FFFFFF
##311B9F1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311b9f;
/* rgb */ color: rgb(49, 27, 159);
/* oklch */ color: oklch(36.2% 0.194 278.1);
Tailwind
colors: {
  custom: {
    50: '#7a5dbd',
    500: '#311b9f',
    950: '#000000',
  },
}
SCSS
$custom: #311b9f;
$custom-light: #7a5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#311b9f",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 250,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36196,
    "c": 0.19396,
    "h": 278.1
  },
  "luminance": 0.0394
}

Semantic roles & 50–950 ramp

primary
#311B9F
secondary
#B1C551
accent
#EE3AD0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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