#311EA6#311EA6

#311EA6 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.3% C 0.200 H 276.9°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#311EA6
RGBrgb(49, 30, 166)
HSLhsl(248, 69%, 38%)
HSVhsv(248, 82%, 65%)
CMYKcmyk(70.5%, 81.9%, 0%, 34.9%)
CIE-LABlab(24.75, 48.94, -68.62)
CIE-LCHlch(24.75, 84.29, 305.50°)
OKLaboklab(37.31% 0.0239 -0.1983)
OKLCHoklch(37.31% 0.2 276.9)
XYZxyz(8.6116, 4.3339, 36.4517)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311EA6 #93A61E
analogous
#1E4FA6 #311EA6 #751EA6
triadic
#311EA6 #A6311E #1EA631
tetradic
#311EA6 #A61E4F #93A61E #1EA675
square
#311EA6 #A61E4F #93A61E #1EA675
split-complementary
#311EA6 #A6751E #4FA61E
monochromatic
#120B3E #221572 #311EA6 #4129D8 #6F5DE2

Accessibility & contrast

On white

11.25
#311EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#311EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311EA6
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311EA6#FFFFFF#000000##FFFFFF
##311EA61.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311ea6;
/* rgb */ color: rgb(49, 30, 166);
/* oklch */ color: oklch(37.3% 0.200 276.9);
Tailwind
colors: {
  custom: {
    50: '#7c5fc2',
    500: '#311ea6',
    950: '#000000',
  },
}
SCSS
$custom: #311ea6;
$custom-light: #7c5fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#311ea6",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 166
  },
  "hsl": {
    "h": 248.382,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37313,
    "c": 0.19974,
    "h": 276.9
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

primary
#311EA6
secondary
#B7C65A
accent
#EC3CD4
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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