#311E9A#311E9A

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

Color values

HEX#311E9A
RGBrgb(49, 30, 154)
HSLhsl(249, 67%, 36%)
HSVhsv(249, 81%, 60%)
CMYKcmyk(68.2%, 80.5%, 0%, 39.6%)
CIE-LABlab(23.39, 45.28, -63.56)
CIE-LCHlch(23.39, 78.04, 305.47°)
OKLaboklab(35.97% 0.0274 -0.1836)
OKLCHoklch(35.97% 0.186 278.5)
XYZxyz(7.5618, 3.9140, 30.9226)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E9A #879A1E
analogous
#1E499A #311E9A #6F1E9A
triadic
#311E9A #9A311E #1E9A31
tetradic
#311E9A #9A1E49 #879A1E #1E9A6F
square
#311E9A #9A1E49 #879A1E #1E9A6F
split-complementary
#311E9A #9A6F1E #499A1E
monochromatic
#100A34 #211467 #311E9A #4128CD #6A55DE

Accessibility & contrast

On white

11.78
#311E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311E9A
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E9A#FFFFFF#000000##FFFFFF
##311E9A1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311e9a;
/* rgb */ color: rgb(49, 30, 154);
/* oklch */ color: oklch(36.0% 0.186 278.5);
Tailwind
colors: {
  custom: {
    50: '#795eb9',
    500: '#311e9a',
    950: '#000000',
  },
}
SCSS
$custom: #311e9a;
$custom-light: #795eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#311e9a",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 154
  },
  "hsl": {
    "h": 249.194,
    "s": 67.391,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3597,
    "c": 0.18562,
    "h": 278.5
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#311E9A
secondary
#B0C153
accent
#EA3ED0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #311E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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