#311FA6#311FA6

#311FA6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.4% C 0.199 H 276.8°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#311FA6
RGBrgb(49, 31, 166)
HSLhsl(248, 69%, 39%)
HSVhsv(248, 81%, 65%)
CMYKcmyk(70.5%, 81.3%, 0%, 34.9%)
CIE-LABlab(24.91, 48.47, -68.36)
CIE-LCHlch(24.91, 83.80, 305.34°)
OKLaboklab(37.42% 0.0235 -0.1975)
OKLCHoklch(37.42% 0.199 276.8)
XYZxyz(8.6373, 4.3853, 36.4603)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FA6 #94A61F
analogous
#1F50A6 #311FA6 #741FA6
triadic
#311FA6 #A6311F #1FA631
tetradic
#311FA6 #A61F50 #94A61F #1FA674
square
#311FA6 #A61F50 #94A61F #1FA674
split-complementary
#311FA6 #A6741F #50A61F
monochromatic
#130C3F #221572 #311FA6 #422BD7 #705EE1

Accessibility & contrast

On white

11.19
#311FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#311FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FA6
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FA6#FFFFFF#000000##FFFFFF
##311FA61.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #311fa6;
/* rgb */ color: rgb(49, 31, 166);
/* oklch */ color: oklch(37.4% 0.199 276.8);
Tailwind
colors: {
  custom: {
    50: '#7c5fc2',
    500: '#311fa6',
    950: '#000000',
  },
}
SCSS
$custom: #311fa6;
$custom-light: #7c5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#311fa6",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 248,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37424,
    "c": 0.19893,
    "h": 276.8
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

primary
#311FA6
secondary
#B7C55B
accent
#EB3CD4
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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