#311CB3#311CB3

#311CB3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.6% C 0.216 H 275.5°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#311CB3
RGBrgb(49, 28, 179)
HSLhsl(248, 73%, 41%)
HSVhsv(248, 84%, 70%)
CMYKcmyk(72.6%, 84.4%, 0%, 29.8%)
CIE-LABlab(25.97, 53.67, -74.41)
CIE-LCHlch(25.97, 91.74, 305.80°)
OKLaboklab(38.6% 0.0208 -0.2151)
OKLCHoklch(38.6% 0.216 275.5)
XYZxyz(9.8159, 4.7372, 43.0361)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311CB3 #9EB31C
analogous
#1C53B3 #311CB3 #7C1CB3
triadic
#311CB3 #B3311C #1CB331
tetradic
#311CB3 #B31C53 #9EB31C #1CB37C
square
#311CB3 #B31C53 #9EB31C #1CB37C
split-complementary
#311CB3 #B37C1C #53B31C
monochromatic
#140B49 #23147E #311CB3 #462EDE #7563E7

Accessibility & contrast

On white

10.78
#311CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#311CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311CB3
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311CB3#FFFFFF#000000##FFFFFF
##311CB31.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0037B0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #311cb3;
/* rgb */ color: rgb(49, 28, 179);
/* oklch */ color: oklch(38.6% 0.216 275.5);
Tailwind
colors: {
  custom: {
    50: '#7f5fcb',
    500: '#311cb3',
    950: '#000000',
  },
}
SCSS
$custom: #311cb3;
$custom-light: #7f5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#311cb3",
  "rgb": {
    "r": 49,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 248.344,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.386,
    "c": 0.21606,
    "h": 275.5
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #311CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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