#311EA7#311EA7

#311EA7 is a dark, highly saturated blue. Relative luminance 0.044; OKLCH L 37.4% C 0.201 H 276.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#311EA7
RGBrgb(49, 30, 167)
HSLhsl(248, 70%, 39%)
HSVhsv(248, 82%, 65%)
CMYKcmyk(70.7%, 82%, 0%, 34.5%)
CIE-LABlab(24.86, 49.24, -69.04)
CIE-LCHlch(24.86, 84.80, 305.50°)
OKLaboklab(37.43% 0.0236 -0.1995)
OKLCHoklch(37.43% 0.201 276.8)
XYZxyz(8.7037, 4.3707, 36.9367)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311EA7 #94A71E
analogous
#1E4FA7 #311EA7 #751EA7
triadic
#311EA7 #A7311E #1EA731
tetradic
#311EA7 #A71E4F #94A71E #1EA775
square
#311EA7 #A71E4F #94A71E #1EA775
split-complementary
#311EA7 #A7751E #4FA71E
monochromatic
#130B3F #221573 #311EA7 #422AD9 #705DE2

Accessibility & contrast

On white

11.20
#311EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311EA7
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311EA7#FFFFFF#000000##FFFFFF
##311EA71.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #311ea7;
/* rgb */ color: rgb(49, 30, 167);
/* oklch */ color: oklch(37.4% 0.201 276.8);
Tailwind
colors: {
  custom: {
    50: '#7c5fc3',
    500: '#311ea7',
    950: '#000000',
  },
}
SCSS
$custom: #311ea7;
$custom-light: #7c5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#311ea7",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 248.321,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37426,
    "c": 0.2009,
    "h": 276.8
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

primary
#311EA7
secondary
#B7C65B
accent
#EC3BD4
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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