#311D9E#311D9E

#311D9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.191 H 278.0°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#311D9E
RGBrgb(49, 29, 158)
HSLhsl(249, 69%, 37%)
HSVhsv(249, 82%, 62%)
CMYKcmyk(69%, 81.6%, 0%, 38%)
CIE-LABlab(23.67, 46.99, -65.54)
CIE-LCHlch(23.67, 80.64, 305.64°)
OKLaboklab(36.3% 0.0267 -0.1893)
OKLCHoklch(36.3% 0.191 278)
XYZxyz(7.8755, 3.9996, 32.6981)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D9E #8A9E1D
analogous
#1D4A9E #311D9E #721D9E
triadic
#311D9E #9E311D #1D9E31
tetradic
#311D9E #9E1D4A #8A9E1D #1D9E72
square
#311D9E #9E1D4A #8A9E1D #1D9E72
split-complementary
#311D9E #9E721D #4A9E1D
monochromatic
#110A37 #21146A #311D9E #4126D2 #6B56E0

Accessibility & contrast

On white

11.67
#311D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#311D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D9E
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D9E#FFFFFF#000000##FFFFFF
##311D9E1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311d9e;
/* rgb */ color: rgb(49, 29, 158);
/* oklch */ color: oklch(36.3% 0.191 278.0);
Tailwind
colors: {
  custom: {
    50: '#7a5ebc',
    500: '#311d9e',
    950: '#000000',
  },
}
SCSS
$custom: #311d9e;
$custom-light: #7a5ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#311d9e",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 249.302,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36301,
    "c": 0.1912,
    "h": 278
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#311D9E
secondary
#B2C354
accent
#EC3CD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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