#311F99#311F99

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

Color values

HEX#311F99
RGBrgb(49, 31, 153)
HSLhsl(249, 66%, 36%)
HSVhsv(249, 80%, 60%)
CMYKcmyk(68%, 79.7%, 0%, 40%)
CIE-LABlab(23.45, 44.48, -62.84)
CIE-LCHlch(23.45, 76.99, 305.29°)
OKLaboklab(35.98% 0.0272 -0.1815)
OKLCHoklch(35.98% 0.184 278.5)
XYZxyz(7.5045, 3.9322, 30.4943)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F99 #87991F
analogous
#1F4A99 #311F99 #6E1F99
triadic
#311F99 #99311F #1F9931
tetradic
#311F99 #991F4A #87991F #1F996E
square
#311F99 #991F4A #87991F #1F996E
split-complementary
#311F99 #996E1F #4A991F
monochromatic
#100A33 #211566 #311F99 #4129CC #6A56DD

Accessibility & contrast

On white

11.75
#311F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#311F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F99
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F99#FFFFFF#000000##FFFFFF
##311F991.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003397
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311f99;
/* rgb */ color: rgb(49, 31, 153);
/* oklch */ color: oklch(36.0% 0.184 278.5);
Tailwind
colors: {
  custom: {
    50: '#795eb8',
    500: '#311f99',
    950: '#000000',
  },
}
SCSS
$custom: #311f99;
$custom-light: #795eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#311f99",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 248.852,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3598,
    "c": 0.18354,
    "h": 278.5
  },
  "luminance": 0.03933
}

Semantic roles & 50–950 ramp

primary
#311F99
secondary
#B0C054
accent
#E93FD0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #311F99

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

Preview Lab → · Contrast checker → · Palette generator →

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