#311BA1#311BA1

#311BA1 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.4% C 0.196 H 277.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#311BA1
RGBrgb(49, 27, 161)
HSLhsl(250, 71%, 37%)
HSVhsv(250, 83%, 63%)
CMYKcmyk(69.6%, 83.2%, 0%, 36.9%)
CIE-LABlab(23.70, 48.81, -67.31)
CIE-LCHlch(23.70, 83.14, 305.94°)
OKLaboklab(36.42% 0.0267 -0.1945)
OKLCHoklch(36.42% 0.196 277.8)
XYZxyz(8.0895, 4.0093, 34.0589)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311BA1 #8BA11B
analogous
#1B48A1 #311BA1 #741BA1
triadic
#311BA1 #A1311B #1BA131
tetradic
#311BA1 #A11B48 #8BA11B #1BA174
square
#311BA1 #A11B48 #8BA11B #1BA174
split-complementary
#311BA1 #A1741B #48A11B
monochromatic
#110938 #21126D #311BA1 #4124D5 #6B54E2

Accessibility & contrast

On white

11.65
#311BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#311BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311BA1
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311BA1#FFFFFF#000000##FFFFFF
##311BA11.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00339F
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311ba1;
/* rgb */ color: rgb(49, 27, 161);
/* oklch */ color: oklch(36.4% 0.196 277.8);
Tailwind
colors: {
  custom: {
    50: '#7b5dbe',
    500: '#311ba1',
    950: '#000000',
  },
}
SCSS
$custom: #311ba1;
$custom-light: #7b5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#311ba1",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 161
  },
  "hsl": {
    "h": 249.851,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36424,
    "c": 0.19627,
    "h": 277.8
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#311BA1
secondary
#B2C552
accent
#EE3AD0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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