#311FA1#311FA1

#311FA1 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.9% C 0.193 H 277.4°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#311FA1
RGBrgb(49, 31, 161)
HSLhsl(248, 68%, 38%)
HSVhsv(248, 81%, 63%)
CMYKcmyk(69.6%, 80.7%, 0%, 36.9%)
CIE-LABlab(24.34, 46.95, -66.26)
CIE-LCHlch(24.34, 81.20, 305.32°)
OKLaboklab(36.86% 0.0249 -0.1914)
OKLCHoklch(36.86% 0.193 277.4)
XYZxyz(8.1875, 4.2054, 34.0916)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FA1 #8FA11F
analogous
#1F4EA1 #311FA1 #721FA1
triadic
#311FA1 #A1311F #1FA131
tetradic
#311FA1 #A11F4E #8FA11F #1FA172
square
#311FA1 #A11F4E #8FA11F #1FA172
split-complementary
#311FA1 #A1721F #4EA11F
monochromatic
#120B3A #21156E #311FA1 #4129D4 #6D5BDF

Accessibility & contrast

On white

11.41
#311FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#311FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FA1
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FA1#FFFFFF#000000##FFFFFF
##311FA11.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311fa1;
/* rgb */ color: rgb(49, 31, 161);
/* oklch */ color: oklch(36.9% 0.193 277.4);
Tailwind
colors: {
  custom: {
    50: '#7b5fbe',
    500: '#311fa1',
    950: '#000000',
  },
}
SCSS
$custom: #311fa1;
$custom-light: #7b5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#311fa1",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 248.308,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36864,
    "c": 0.19307,
    "h": 277.4
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

primary
#311FA1
secondary
#B5C458
accent
#EB3DD3
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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