#311C9B#311C9B

#311C9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.9% C 0.188 H 278.6°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#311C9B
RGBrgb(49, 28, 155)
HSLhsl(250, 69%, 36%)
HSVhsv(250, 82%, 61%)
CMYKcmyk(68.4%, 81.9%, 0%, 39.2%)
CIE-LABlab(23.17, 46.55, -64.53)
CIE-LCHlch(23.17, 79.57, 305.81°)
OKLaboklab(35.85% 0.0281 -0.1864)
OKLCHoklch(35.85% 0.188 278.6)
XYZxyz(7.5964, 3.8494, 31.3467)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311C9B #869B1C
analogous
#1C469B #311C9B #701C9B
triadic
#311C9B #9B311C #1C9B31
tetradic
#311C9B #9B1C46 #869B1C #1C9B70
square
#311C9B #9B1C46 #869B1C #1C9B70
split-complementary
#311C9B #9B701C #469B1C
monochromatic
#100933 #211367 #311C9B #4125CF #6952E0

Accessibility & contrast

On white

11.86
#311C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#311C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311C9B
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311C9B#FFFFFF#000000##FFFFFF
##311C9B1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00435C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #311c9b;
/* rgb */ color: rgb(49, 28, 155);
/* oklch */ color: oklch(35.9% 0.188 278.6);
Tailwind
colors: {
  custom: {
    50: '#795dba',
    500: '#311c9b',
    950: '#000000',
  },
}
SCSS
$custom: #311c9b;
$custom-light: #795dba;
$custom-dark: #000000;
JSON
{
  "hex": "#311c9b",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 249.921,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35852,
    "c": 0.18849,
    "h": 278.6
  },
  "luminance": 0.0385
}

Semantic roles & 50–950 ramp

primary
#311C9B
secondary
#B0C350
accent
#EC3CCF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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