#311E91#311E91

#311E91 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.175 H 279.9°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#311E91
RGBrgb(49, 30, 145)
HSLhsl(250, 66%, 34%)
HSVhsv(250, 79%, 57%)
CMYKcmyk(66.2%, 79.3%, 0%, 43.1%)
CIE-LABlab(22.39, 42.49, -59.65)
CIE-LCHlch(22.39, 73.23, 305.47°)
OKLaboklab(34.98% 0.03 -0.1722)
OKLCHoklch(34.98% 0.175 279.9)
XYZxyz(6.8401, 3.6253, 27.1219)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E91 #7E911E
analogous
#1E4591 #311E91 #6B1E91
triadic
#311E91 #91311E #1E9131
tetradic
#311E91 #911E45 #7E911E #1E916B
square
#311E91 #911E45 #7E911E #1E916B
split-complementary
#311E91 #916B1E #45911E
monochromatic
#0F092C #20145E #311E91 #4228C4 #664FDB

Accessibility & contrast

On white

12.17
#311E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#311E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E91
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E91#FFFFFF#000000##FFFFFF
##311E911.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00318F
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311e91;
/* rgb */ color: rgb(49, 30, 145);
/* oklch */ color: oklch(35.0% 0.175 279.9);
Tailwind
colors: {
  custom: {
    50: '#775db2',
    500: '#311e91',
    950: '#000000',
  },
}
SCSS
$custom: #311e91;
$custom-light: #775db2;
$custom-dark: #000000;
JSON
{
  "hex": "#311e91",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 145
  },
  "hsl": {
    "h": 249.913,
    "s": 65.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34984,
    "c": 0.17479,
    "h": 279.9
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#311E91
secondary
#ABBD4D
accent
#E93FCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311E91

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

Preview Lab → · Contrast checker → · Palette generator →

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