#311EA5#311EA5

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

Color values

HEX#311EA5
RGBrgb(49, 30, 165)
HSLhsl(248, 69%, 38%)
HSVhsv(248, 82%, 65%)
CMYKcmyk(70.3%, 81.8%, 0%, 35.3%)
CIE-LABlab(24.63, 48.64, -68.21)
CIE-LCHlch(24.63, 83.77, 305.49°)
OKLaboklab(37.2% 0.0242 -0.1971)
OKLCHoklch(37.2% 0.199 277)
XYZxyz(8.5202, 4.2973, 35.9705)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311EA5 #92A51E
analogous
#1E4FA5 #311EA5 #741EA5
triadic
#311EA5 #A5311E #1EA531
tetradic
#311EA5 #A51E4F #92A51E #1EA574
square
#311EA5 #A51E4F #92A51E #1EA574
split-complementary
#311EA5 #A5741E #4FA51E
monochromatic
#120B3D #221571 #311EA5 #4128D8 #6F5CE1

Accessibility & contrast

On white

11.29
#311EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311EA5
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311EA5#FFFFFF#000000##FFFFFF
##311EA51.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #311ea5;
/* rgb */ color: rgb(49, 30, 165);
/* oklch */ color: oklch(37.2% 0.199 277.0);
Tailwind
colors: {
  custom: {
    50: '#7c5fc1',
    500: '#311ea5',
    950: '#000000',
  },
}
SCSS
$custom: #311ea5;
$custom-light: #7c5fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#311ea5",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 165
  },
  "hsl": {
    "h": 248.444,
    "s": 69.231,
    "l": 38.235
  },
  "oklch": {
    "l": 0.372,
    "c": 0.19857,
    "h": 277
  },
  "luminance": 0.04298
}

Semantic roles & 50–950 ramp

primary
#311EA5
secondary
#B6C559
accent
#EC3CD3
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #311EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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