#311E99#311E99

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

Color values

HEX#311E99
RGBrgb(49, 30, 153)
HSLhsl(249, 67%, 36%)
HSVhsv(249, 80%, 60%)
CMYKcmyk(68%, 80.4%, 0%, 40%)
CIE-LABlab(23.27, 44.97, -63.13)
CIE-LCHlch(23.27, 77.51, 305.47°)
OKLaboklab(35.86% 0.0277 -0.1823)
OKLCHoklch(35.86% 0.184 278.6)
XYZxyz(7.4788, 3.8808, 30.4858)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E99 #86991E
analogous
#1E4899 #311E99 #6E1E99
triadic
#311E99 #99311E #1E9931
tetradic
#311E99 #991E48 #86991E #1E996E
square
#311E99 #991E48 #86991E #1E996E
split-complementary
#311E99 #996E1E #48991E
monochromatic
#100A33 #211466 #311E99 #4128CC #6954DD

Accessibility & contrast

On white

11.82
#311E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#311E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E99
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E99#FFFFFF#000000##FFFFFF
##311E991.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311e99;
/* rgb */ color: rgb(49, 30, 153);
/* oklch */ color: oklch(35.9% 0.184 278.6);
Tailwind
colors: {
  custom: {
    50: '#795eb8',
    500: '#311e99',
    950: '#000000',
  },
}
SCSS
$custom: #311e99;
$custom-light: #795eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#311e99",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 153
  },
  "hsl": {
    "h": 249.268,
    "s": 67.213,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35859,
    "c": 0.18442,
    "h": 278.6
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#311E99
secondary
#B0C152
accent
#EA3ECF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #311E99

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

Preview Lab → · Contrast checker → · Palette generator →

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