#311E9B#311E9B

#311E9B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.1% C 0.187 H 278.4°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#311E9B
RGBrgb(49, 30, 155)
HSLhsl(249, 68%, 36%)
HSVhsv(249, 81%, 61%)
CMYKcmyk(68.4%, 80.6%, 0%, 39.2%)
CIE-LABlab(23.50, 45.59, -63.99)
CIE-LCHlch(23.50, 78.57, 305.47°)
OKLaboklab(36.08% 0.0271 -0.1848)
OKLCHoklch(36.08% 0.187 278.4)
XYZxyz(7.6454, 3.9474, 31.3630)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E9B #889B1E
analogous
#1E4A9B #311E9B #701E9B
triadic
#311E9B #9B311E #1E9B31
tetradic
#311E9B #9B1E4A #889B1E #1E9B70
square
#311E9B #9B1E4A #889B1E #1E9B70
split-complementary
#311E9B #9B701E #4A9B1E
monochromatic
#110A34 #211468 #311E9B #4128CE #6A55DE

Accessibility & contrast

On white

11.73
#311E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311E9B
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E9B#FFFFFF#000000##FFFFFF
##311E9B1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311e9b;
/* rgb */ color: rgb(49, 30, 155);
/* oklch */ color: oklch(36.1% 0.187 278.4);
Tailwind
colors: {
  custom: {
    50: '#795eba',
    500: '#311e9b',
    950: '#000000',
  },
}
SCSS
$custom: #311e9b;
$custom-light: #795eba;
$custom-dark: #000000;
JSON
{
  "hex": "#311e9b",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 249.12,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36081,
    "c": 0.18681,
    "h": 278.4
  },
  "luminance": 0.03948
}

Semantic roles & 50–950 ramp

primary
#311E9B
secondary
#B1C253
accent
#EA3DD0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #311E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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