#311CA9#311CA9

#311CA9 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.4% C 0.205 H 276.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#311CA9
RGBrgb(49, 28, 169)
HSLhsl(249, 72%, 39%)
HSVhsv(249, 83%, 66%)
CMYKcmyk(71%, 83.4%, 0%, 33.7%)
CIE-LABlab(24.79, 50.74, -70.37)
CIE-LCHlch(24.79, 86.75, 305.79°)
OKLaboklab(37.44% 0.0238 -0.2033)
OKLCHoklch(37.44% 0.205 276.7)
XYZxyz(8.8410, 4.3472, 37.9016)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311CA9 #94A91C
analogous
#1C4DA9 #311CA9 #771CA9
triadic
#311CA9 #A9311C #1CA931
tetradic
#311CA9 #A91C4D #94A91C #1CA977
square
#311CA9 #A91C4D #94A91C #1CA977
split-complementary
#311CA9 #A9771C #4DA91C
monochromatic
#130B40 #221374 #311CA9 #4227DB #705BE4

Accessibility & contrast

On white

11.23
#311CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311CA9
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311CA9#FFFFFF#000000##FFFFFF
##311CA91.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311ca9;
/* rgb */ color: rgb(49, 28, 169);
/* oklch */ color: oklch(37.4% 0.205 276.7);
Tailwind
colors: {
  custom: {
    50: '#7d5ec4',
    500: '#311ca9',
    950: '#000000',
  },
}
SCSS
$custom: #311ca9;
$custom-light: #7d5ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#311ca9",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 248.936,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37443,
    "c": 0.20472,
    "h": 276.7
  },
  "luminance": 0.04348
}

Semantic roles & 50–950 ramp

primary
#311CA9
secondary
#B7C859
accent
#EE39D3
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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