#311CA7#311CA7

#311CA7 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.202 H 276.9°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#311CA7
RGBrgb(49, 28, 167)
HSLhsl(249, 71%, 38%)
HSVhsv(249, 83%, 65%)
CMYKcmyk(70.7%, 83.2%, 0%, 34.5%)
CIE-LABlab(24.55, 50.15, -69.55)
CIE-LCHlch(24.55, 85.74, 305.79°)
OKLaboklab(37.21% 0.0244 -0.2009)
OKLCHoklch(37.21% 0.202 276.9)
XYZxyz(8.6547, 4.2727, 36.9203)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311CA7 #92A71C
analogous
#1C4CA7 #311CA7 #761CA7
triadic
#311CA7 #A7311C #1CA731
tetradic
#311CA7 #A71C4C #92A71C #1CA776
square
#311CA7 #A71C4C #92A71C #1CA776
split-complementary
#311CA7 #A7761C #4CA71C
monochromatic
#120A3E #221373 #311CA7 #4126DB #6F5AE3

Accessibility & contrast

On white

11.32
#311CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#311CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311CA7
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311CA7#FFFFFF#000000##FFFFFF
##311CA71.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #311ca7;
/* rgb */ color: rgb(49, 28, 167);
/* oklch */ color: oklch(37.2% 0.202 276.9);
Tailwind
colors: {
  custom: {
    50: '#7c5ec3',
    500: '#311ca7',
    950: '#000000',
  },
}
SCSS
$custom: #311ca7;
$custom-light: #7c5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#311ca7",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 167
  },
  "hsl": {
    "h": 249.065,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37214,
    "c": 0.20243,
    "h": 276.9
  },
  "luminance": 0.04273
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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