#311EAC#311EAC

#311EAC is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.0% C 0.207 H 276.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#311EAC
RGBrgb(49, 30, 172)
HSLhsl(248, 70%, 40%)
HSVhsv(248, 83%, 67%)
CMYKcmyk(71.5%, 82.6%, 0%, 32.5%)
CIE-LABlab(25.44, 50.74, -71.09)
CIE-LCHlch(25.44, 87.34, 305.52°)
OKLaboklab(38% 0.0222 -0.2055)
OKLCHoklch(38% 0.207 276.2)
XYZxyz(9.1749, 4.5592, 39.4182)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311EAC #99AC1E
analogous
#1E52AC #311EAC #781EAC
triadic
#311EAC #AC311E #1EAC31
tetradic
#311EAC #AC1E52 #99AC1E #1EAC78
square
#311EAC #AC1E52 #99AC1E #1EAC78
split-complementary
#311EAC #AC781E #52AC1E
monochromatic
#130C44 #221578 #311EAC #442DDA #7261E3

Accessibility & contrast

On white

10.98
#311EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#311EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311EAC
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311EAC#FFFFFF#000000##FFFFFF
##311EAC1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B0
Deuteranopia (green-blind)
#0036AA
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #311eac;
/* rgb */ color: rgb(49, 30, 172);
/* oklch */ color: oklch(38.0% 0.207 276.2);
Tailwind
colors: {
  custom: {
    50: '#7d5fc6',
    500: '#311eac',
    950: '#000000',
  },
}
SCSS
$custom: #311eac;
$custom-light: #7d5fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#311eac",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 172
  },
  "hsl": {
    "h": 248.028,
    "s": 70.297,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37995,
    "c": 0.20667,
    "h": 276.2
  },
  "luminance": 0.0456
}

Semantic roles & 50–950 ramp

primary
#311EAC
secondary
#BAC85E
accent
#ED3BD5
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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