#311D96#311D96

#311D96 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.182 H 279.2°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#311D96
RGBrgb(49, 29, 150)
HSLhsl(250, 68%, 35%)
HSVhsv(250, 81%, 59%)
CMYKcmyk(67.3%, 80.7%, 0%, 41.2%)
CIE-LABlab(22.77, 44.54, -62.12)
CIE-LCHlch(22.77, 76.44, 305.64°)
OKLaboklab(35.41% 0.0291 -0.1794)
OKLCHoklch(35.41% 0.182 279.2)
XYZxyz(7.2092, 3.7331, 29.1889)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311D96 #82961D
analogous
#1D4696 #311D96 #6D1D96
triadic
#311D96 #96311D #1D9631
tetradic
#311D96 #961D46 #82961D #1D966D
square
#311D96 #961D46 #82961D #1D966D
split-complementary
#311D96 #966D1D #46961D
monochromatic
#0F092F #201363 #311D96 #4227C9 #6850DD

Accessibility & contrast

On white

12.02
#311D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#311D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311D96
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311D96#FFFFFF#000000##FFFFFF
##311D961.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B99
Deuteranopia (green-blind)
#003294
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311d96;
/* rgb */ color: rgb(49, 29, 150);
/* oklch */ color: oklch(35.4% 0.182 279.2);
Tailwind
colors: {
  custom: {
    50: '#785db6',
    500: '#311d96',
    950: '#000000',
  },
}
SCSS
$custom: #311d96;
$custom-light: #785db6;
$custom-dark: #000000;
JSON
{
  "hex": "#311d96",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 249.917,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3541,
    "c": 0.18172,
    "h": 279.2
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#311D96
secondary
#ADC04F
accent
#EA3DCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311D96

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

Preview Lab → · Contrast checker → · Palette generator →

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