#311CB4#311CB4

#311CB4 is a dark, highly saturated blue. Relative luminance 0.048; OKLCH L 38.7% C 0.217 H 275.4°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#311CB4
RGBrgb(49, 28, 180)
HSLhsl(248, 73%, 41%)
HSVhsv(248, 84%, 71%)
CMYKcmyk(72.8%, 84.4%, 0%, 29.4%)
CIE-LABlab(26.09, 53.96, -74.81)
CIE-LCHlch(26.09, 92.24, 305.80°)
OKLaboklab(38.72% 0.0205 -0.2162)
OKLCHoklch(38.72% 0.217 275.4)
XYZxyz(9.9174, 4.7778, 43.5707)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311CB4 #9FB41C
analogous
#1C53B4 #311CB4 #7D1CB4
triadic
#311CB4 #B4311C #1CB431
tetradic
#311CB4 #B41C53 #9FB41C #1CB47D
square
#311CB4 #B41C53 #9FB41C #1CB47D
split-complementary
#311CB4 #B47D1C #53B41C
monochromatic
#140C4A #23147F #311CB4 #472FDF #7664E7

Accessibility & contrast

On white

10.74
#311CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#311CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311CB4
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311CB4#FFFFFF#000000##FFFFFF
##311CB41.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #311cb4;
/* rgb */ color: rgb(49, 28, 180);
/* oklch */ color: oklch(38.7% 0.217 275.4);
Tailwind
colors: {
  custom: {
    50: '#7f5fcc',
    500: '#311cb4',
    950: '#000000',
  },
}
SCSS
$custom: #311cb4;
$custom-light: #7f5fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#311cb4",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 248.289,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38716,
    "c": 0.21719,
    "h": 275.4
  },
  "luminance": 0.04779
}

Semantic roles & 50–950 ramp

primary
#311CB4
secondary
#BDCC60
accent
#F038D6
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #311CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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