#311CA1#311CA1

#311CA1 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.5% C 0.196 H 277.7°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#311CA1
RGBrgb(49, 28, 161)
HSLhsl(249, 70%, 37%)
HSVhsv(249, 83%, 63%)
CMYKcmyk(69.6%, 82.6%, 0%, 36.9%)
CIE-LABlab(23.86, 48.36, -67.06)
CIE-LCHlch(23.86, 82.67, 305.80°)
OKLaboklab(36.53% 0.0263 -0.1937)
OKLCHoklch(36.53% 0.196 277.7)
XYZxyz(8.1128, 4.0560, 34.0666)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311CA1 #8CA11C
analogous
#1C49A1 #311CA1 #741CA1
triadic
#311CA1 #A1311C #1CA131
tetradic
#311CA1 #A11C49 #8CA11C #1CA174
square
#311CA1 #A11C49 #8CA11C #1CA174
split-complementary
#311CA1 #A1741C #49A11C
monochromatic
#110A39 #21136D #311CA1 #4125D5 #6C56E2

Accessibility & contrast

On white

11.59
#311CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#311CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311CA1
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311CA1#FFFFFF#000000##FFFFFF
##311CA11.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311ca1;
/* rgb */ color: rgb(49, 28, 161);
/* oklch */ color: oklch(36.5% 0.196 277.7);
Tailwind
colors: {
  custom: {
    50: '#7b5dbe',
    500: '#311ca1',
    950: '#000000',
  },
}
SCSS
$custom: #311ca1;
$custom-light: #7b5dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#311ca1",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 161
  },
  "hsl": {
    "h": 249.474,
    "s": 70.37,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36529,
    "c": 0.1955,
    "h": 277.7
  },
  "luminance": 0.04057
}

Semantic roles & 50–950 ramp

primary
#311CA1
secondary
#B3C554
accent
#ED3BD1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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