#311D9A#311D9A

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

Color values

HEX#311D9A
RGBrgb(49, 29, 154)
HSLhsl(250, 68%, 36%)
HSVhsv(250, 81%, 60%)
CMYKcmyk(68.2%, 81.2%, 0%, 39.6%)
CIE-LABlab(23.22, 45.77, -63.84)
CIE-LCHlch(23.22, 78.55, 305.64°)
OKLaboklab(35.85% 0.0279 -0.1844)
OKLCHoklch(35.85% 0.186 278.6)
XYZxyz(7.5368, 3.8641, 30.9143)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D9A #869A1D
analogous
#1D479A #311D9A #6F1D9A
triadic
#311D9A #9A311D #1D9A31
tetradic
#311D9A #9A1D47 #869A1D #1D9A6F
square
#311D9A #9A1D47 #869A1D #1D9A6F
split-complementary
#311D9A #9A6F1D #479A1D
monochromatic
#100A33 #211366 #311D9A #4127CE #6953DF

Accessibility & contrast

On white

11.84
#311D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311D9A
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D9A#FFFFFF#000000##FFFFFF
##311D9A1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311d9a;
/* rgb */ color: rgb(49, 29, 154);
/* oklch */ color: oklch(35.9% 0.186 278.6);
Tailwind
colors: {
  custom: {
    50: '#795db9',
    500: '#311d9a',
    950: '#000000',
  },
}
SCSS
$custom: #311d9a;
$custom-light: #795db9;
$custom-dark: #000000;
JSON
{
  "hex": "#311d9a",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 154
  },
  "hsl": {
    "h": 249.6,
    "s": 68.306,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35853,
    "c": 0.18648,
    "h": 278.6
  },
  "luminance": 0.03865
}

Semantic roles & 50–950 ramp

primary
#311D9A
secondary
#B0C251
accent
#EB3DCF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #311D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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