#311DEC#311DEC

#311DEC is a mid, highly saturated blue. Relative luminance 0.076; OKLCH L 45.5% C 0.277 H 271.0°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#311DEC
RGBrgb(49, 29, 236)
HSLhsl(246, 84%, 52%)
HSVhsv(246, 88%, 93%)
CMYKcmyk(79.2%, 87.7%, 0%, 7.5%)
CIE-LABlab(33.11, 69.17, -95.74)
CIE-LCHlch(33.11, 118.12, 305.85°)
OKLaboklab(45.45% 0.0047 -0.2768)
OKLCHoklch(45.45% 0.277 271)
XYZxyz(16.8412, 7.5859, 79.9172)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311DEC #D8EC1D
analogous
#1D71EC #311DEC #991DEC
triadic
#311DEC #EC311D #1DEC31
tetradic
#311DEC #EC1D71 #D8EC1D #1DEC99
square
#311DEC #EC1D71 #D8EC1D #1DEC99
split-complementary
#311DEC #EC991D #71EC1D
monochromatic
#170B84 #2010BC #311DEC #6455F1 #988EF5

Accessibility & contrast

On white

8.34
#311DEC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#311DEC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311DEC
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311DEC#FFFFFF#000000##FFFFFF
##311DEC1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057F1
Deuteranopia (green-blind)
#0043E9
Tritanopia (blue-blind)
#00668C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #311dec;
/* rgb */ color: rgb(49, 29, 236);
/* oklch */ color: oklch(45.5% 0.277 271.0);
Tailwind
colors: {
  custom: {
    50: '#8c64f4',
    500: '#311dec',
    950: '#000000',
  },
}
SCSS
$custom: #311dec;
$custom-light: #8c64f4;
$custom-dark: #000000;
JSON
{
  "hex": "#311dec",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 236
  },
  "hsl": {
    "h": 245.797,
    "s": 84.49,
    "l": 51.961
  },
  "oklch": {
    "l": 0.45452,
    "c": 0.27685,
    "h": 271
  },
  "luminance": 0.07588
}

Semantic roles & 50–950 ramp

primary
#311DEC
secondary
#D7E085
accent
#FB2DE7
background
#F9F6FF
surface
#F2EBFF
border
#CCC6D7
text
#0F0617
muted
#7E7A85

Preview Lab

Preview with #311DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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