#311E96#311E96

#311E96 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.181 H 279.1°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#311E96
RGBrgb(49, 30, 150)
HSLhsl(250, 67%, 35%)
HSVhsv(250, 80%, 59%)
CMYKcmyk(67.3%, 80%, 0%, 41.2%)
CIE-LABlab(22.94, 44.05, -61.83)
CIE-LCHlch(22.94, 75.92, 305.47°)
OKLaboklab(35.53% 0.0286 -0.1786)
OKLCHoklch(35.53% 0.181 279.1)
XYZxyz(7.2342, 3.7829, 29.1972)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E96 #83961E
analogous
#1E4796 #311E96 #6D1E96
triadic
#311E96 #96311E #1E9631
tetradic
#311E96 #961E47 #83961E #1E966D
square
#311E96 #961E47 #83961E #1E966D
split-complementary
#311E96 #966D1E #47961E
monochromatic
#100A30 #201463 #311E96 #4228C9 #6852DC

Accessibility & contrast

On white

11.95
#311E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#311E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E96
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E96#FFFFFF#000000##FFFFFF
##311E961.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311e96;
/* rgb */ color: rgb(49, 30, 150);
/* oklch */ color: oklch(35.5% 0.181 279.1);
Tailwind
colors: {
  custom: {
    50: '#785eb6',
    500: '#311e96',
    950: '#000000',
  },
}
SCSS
$custom: #311e96;
$custom-light: #785eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#311e96",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 249.5,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35529,
    "c": 0.18083,
    "h": 279.1
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#311E96
secondary
#AEBF50
accent
#EA3ECE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311E96

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

Preview Lab → · Contrast checker → · Palette generator →

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