#311DB3#311DB3

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

Color values

HEX#311DB3
RGBrgb(49, 29, 179)
HSLhsl(248, 72%, 41%)
HSVhsv(248, 84%, 70%)
CMYKcmyk(72.6%, 83.8%, 0%, 29.8%)
CIE-LABlab(26.11, 53.25, -74.17)
CIE-LCHlch(26.11, 91.31, 305.67°)
OKLaboklab(38.7% 0.0205 -0.2144)
OKLCHoklch(38.7% 0.215 275.5)
XYZxyz(9.8400, 4.7854, 43.0442)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311DB3 #9FB31D
analogous
#1D54B3 #311DB3 #7C1DB3
triadic
#311DB3 #B3311D #1DB331
tetradic
#311DB3 #B31D54 #9FB31D #1DB37C
square
#311DB3 #B31D54 #9FB31D #1DB37C
split-complementary
#311DB3 #B37C1D #54B31D
monochromatic
#140C4A #23147E #311DB3 #4730DD #7664E6

Accessibility & contrast

On white

10.73
#311DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #311DB3
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311DB3#FFFFFF#000000##FFFFFF
##311DB31.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311db3;
/* rgb */ color: rgb(49, 29, 179);
/* oklch */ color: oklch(38.7% 0.215 275.5);
Tailwind
colors: {
  custom: {
    50: '#7f5fcb',
    500: '#311db3',
    950: '#000000',
  },
}
SCSS
$custom: #311db3;
$custom-light: #7f5fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#311db3",
  "rgb": {
    "r": 49,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 248,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38697,
    "c": 0.21537,
    "h": 275.5
  },
  "luminance": 0.04786
}

Semantic roles & 50–950 ramp

primary
#311DB3
secondary
#BDCB61
accent
#EF39D7
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #311DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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