#311D99#311D99

#311D99 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.185 H 278.8°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#311D99
RGBrgb(49, 29, 153)
HSLhsl(250, 68%, 36%)
HSVhsv(250, 81%, 60%)
CMYKcmyk(68%, 81%, 0%, 40%)
CIE-LABlab(23.10, 45.46, -63.41)
CIE-LCHlch(23.10, 78.02, 305.64°)
OKLaboklab(35.74% 0.0282 -0.1831)
OKLCHoklch(35.74% 0.185 278.8)
XYZxyz(7.4539, 3.8310, 30.4775)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D99 #85991D
analogous
#1D4799 #311D99 #6F1D99
triadic
#311D99 #99311D #1D9931
tetradic
#311D99 #991D47 #85991D #1D996F
square
#311D99 #991D47 #85991D #1D996F
split-complementary
#311D99 #996F1D #47991D
monochromatic
#100932 #211366 #311D99 #4127CC #6952DE

Accessibility & contrast

On white

11.89
#311D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311D99
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D99#FFFFFF#000000##FFFFFF
##311D991.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #311d99;
/* rgb */ color: rgb(49, 29, 153);
/* oklch */ color: oklch(35.7% 0.185 278.8);
Tailwind
colors: {
  custom: {
    50: '#795db8',
    500: '#311d99',
    950: '#000000',
  },
}
SCSS
$custom: #311d99;
$custom-light: #795db8;
$custom-dark: #000000;
JSON
{
  "hex": "#311d99",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 249.677,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35742,
    "c": 0.18529,
    "h": 278.8
  },
  "luminance": 0.03832
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311D99

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

Preview Lab → · Contrast checker → · Palette generator →

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