#311EA1#311EA1

#311EA1 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.194 H 277.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#311EA1
RGBrgb(49, 30, 161)
HSLhsl(249, 69%, 37%)
HSVhsv(249, 81%, 63%)
CMYKcmyk(69.6%, 81.4%, 0%, 36.9%)
CIE-LABlab(24.17, 47.43, -66.53)
CIE-LCHlch(24.17, 81.70, 305.48°)
OKLaboklab(36.75% 0.0254 -0.1922)
OKLCHoklch(36.75% 0.194 277.5)
XYZxyz(8.1618, 4.1540, 34.0830)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311EA1 #8EA11E
analogous
#1E4DA1 #311EA1 #721EA1
triadic
#311EA1 #A1311E #1EA131
tetradic
#311EA1 #A11E4D #8EA11E #1EA172
square
#311EA1 #A11E4D #8EA11E #1EA172
split-complementary
#311EA1 #A1721E #4DA11E
monochromatic
#120B3A #21146D #311EA1 #4128D5 #6D59E0

Accessibility & contrast

On white

11.47
#311EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#311EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311EA1
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311EA1#FFFFFF#000000##FFFFFF
##311EA11.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA5
Deuteranopia (green-blind)
#00349F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #311ea1;
/* rgb */ color: rgb(49, 30, 161);
/* oklch */ color: oklch(36.8% 0.194 277.5);
Tailwind
colors: {
  custom: {
    50: '#7b5ebe',
    500: '#311ea1',
    950: '#000000',
  },
}
SCSS
$custom: #311ea1;
$custom-light: #7b5ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#311ea1",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 161
  },
  "hsl": {
    "h": 248.702,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3675,
    "c": 0.1939,
    "h": 277.5
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#311EA1
secondary
#B4C457
accent
#EB3CD2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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