#311CA8#311CA8

#311CA8 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.3% C 0.204 H 276.8°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#311CA8
RGBrgb(49, 28, 168)
HSLhsl(249, 71%, 38%)
HSVhsv(249, 83%, 66%)
CMYKcmyk(70.8%, 83.3%, 0%, 34.1%)
CIE-LABlab(24.67, 50.44, -69.96)
CIE-LCHlch(24.67, 86.25, 305.79°)
OKLaboklab(37.33% 0.0241 -0.2021)
OKLCHoklch(37.33% 0.204 276.8)
XYZxyz(8.7475, 4.3098, 37.4091)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311CA8 #93A81C
analogous
#1C4DA8 #311CA8 #771CA8
triadic
#311CA8 #A8311C #1CA831
tetradic
#311CA8 #A81C4D #93A81C #1CA877
square
#311CA8 #A81C4D #93A81C #1CA877
split-complementary
#311CA8 #A8771C #4DA81C
monochromatic
#120B3F #221374 #311CA8 #4126DB #6F5BE4

Accessibility & contrast

On white

11.28
#311CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311CA8
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311CA8#FFFFFF#000000##FFFFFF
##311CA81.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #311ca8;
/* rgb */ color: rgb(49, 28, 168);
/* oklch */ color: oklch(37.3% 0.204 276.8);
Tailwind
colors: {
  custom: {
    50: '#7c5ec3',
    500: '#311ca8',
    950: '#000000',
  },
}
SCSS
$custom: #311ca8;
$custom-light: #7c5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#311ca8",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 168
  },
  "hsl": {
    "h": 249,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37328,
    "c": 0.20357,
    "h": 276.8
  },
  "luminance": 0.04311
}

Semantic roles & 50–950 ramp

primary
#311CA8
secondary
#B7C758
accent
#EE3AD3
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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