#311CA6#311CA6

#311CA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.1% C 0.201 H 277.1°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#311CA6
RGBrgb(49, 28, 166)
HSLhsl(249, 71%, 38%)
HSVhsv(249, 83%, 65%)
CMYKcmyk(70.5%, 83.1%, 0%, 34.9%)
CIE-LABlab(24.44, 49.85, -69.13)
CIE-LCHlch(24.44, 85.23, 305.79°)
OKLaboklab(37.1% 0.0247 -0.1998)
OKLCHoklch(37.1% 0.201 277.1)
XYZxyz(8.5626, 4.2359, 36.4354)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311CA6 #91A61C
analogous
#1C4CA6 #311CA6 #761CA6
triadic
#311CA6 #A6311C #1CA631
tetradic
#311CA6 #A61C4C #91A61C #1CA676
square
#311CA6 #A61C4C #91A61C #1CA676
split-complementary
#311CA6 #A6761C #4CA61C
monochromatic
#120A3D #221372 #311CA6 #4125DA #6E59E3

Accessibility & contrast

On white

11.37
#311CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311CA6
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311CA6#FFFFFF#000000##FFFFFF
##311CA61.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #311ca6;
/* rgb */ color: rgb(49, 28, 166);
/* oklch */ color: oklch(37.1% 0.201 277.1);
Tailwind
colors: {
  custom: {
    50: '#7c5ec2',
    500: '#311ca6',
    950: '#000000',
  },
}
SCSS
$custom: #311ca6;
$custom-light: #7c5ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#311ca6",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 166
  },
  "hsl": {
    "h": 249.13,
    "s": 71.134,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37099,
    "c": 0.20128,
    "h": 277.1
  },
  "luminance": 0.04237
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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