#311FA4#311FA4

#311FA4 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.2% C 0.197 H 277.0°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#311FA4
RGBrgb(49, 31, 164)
HSLhsl(248, 68%, 38%)
HSVhsv(248, 81%, 64%)
CMYKcmyk(70.1%, 81.1%, 0%, 35.7%)
CIE-LABlab(24.68, 47.86, -67.52)
CIE-LCHlch(24.68, 82.76, 305.33°)
OKLaboklab(37.2% 0.0241 -0.1951)
OKLCHoklch(37.2% 0.197 277)
XYZxyz(8.4553, 4.3125, 35.5016)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FA4 #92A41F
analogous
#1F50A4 #311FA4 #731FA4
triadic
#311FA4 #A4311F #1FA431
tetradic
#311FA4 #A41F50 #92A41F #1FA473
square
#311FA4 #A41F50 #92A41F #1FA473
split-complementary
#311FA4 #A4731F #50A41F
monochromatic
#120C3D #221571 #311FA4 #412AD7 #6F5DE0

Accessibility & contrast

On white

11.27
#311FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#311FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FA4
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FA4#FFFFFF#000000##FFFFFF
##311FA41.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #311fa4;
/* rgb */ color: rgb(49, 31, 164);
/* oklch */ color: oklch(37.2% 0.197 277.0);
Tailwind
colors: {
  custom: {
    50: '#7b5fc0',
    500: '#311fa4',
    950: '#000000',
  },
}
SCSS
$custom: #311fa4;
$custom-light: #7b5fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#311fa4",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 248.12,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.372,
    "c": 0.19659,
    "h": 277
  },
  "luminance": 0.04313
}

Semantic roles & 50–950 ramp

primary
#311FA4
secondary
#B6C55A
accent
#EB3DD3
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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