#311EBB#311EBB

#311EBB is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.7% C 0.224 H 274.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#311EBB
RGBrgb(49, 30, 187)
HSLhsl(247, 72%, 43%)
HSVhsv(247, 84%, 73%)
CMYKcmyk(73.8%, 84%, 0%, 26.7%)
CIE-LABlab(27.21, 55.16, -77.12)
CIE-LCHlch(27.21, 94.82, 305.58°)
OKLaboklab(39.72% 0.0178 -0.2229)
OKLCHoklch(39.72% 0.224 274.6)
XYZxyz(10.6976, 5.1683, 47.4379)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311EBB #A8BB1E
analogous
#1E5ABB #311EBB #7F1EBB
triadic
#311EBB #BB311E #1EBB31
tetradic
#311EBB #BB1E5A #A8BB1E #1EBB7F
square
#311EBB #BB1E5A #A8BB1E #1EBB7F
split-complementary
#311EBB #BB7F1E #5ABB1E
monochromatic
#150D52 #231686 #311EBB #4C37DF #7B6CE7

Accessibility & contrast

On white

10.33
#311EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#311EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311EBB
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311EBB#FFFFFF#000000##FFFFFF
##311EBB1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BF
Deuteranopia (green-blind)
#0039B8
Tritanopia (blue-blind)
#00516F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #311ebb;
/* rgb */ color: rgb(49, 30, 187);
/* oklch */ color: oklch(39.7% 0.224 274.6);
Tailwind
colors: {
  custom: {
    50: '#8060d1',
    500: '#311ebb',
    950: '#000000',
  },
}
SCSS
$custom: #311ebb;
$custom-light: #8060d1;
$custom-dark: #000000;
JSON
{
  "hex": "#311ebb",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 187
  },
  "hsl": {
    "h": 247.261,
    "s": 72.35,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39724,
    "c": 0.22366,
    "h": 274.6
  },
  "luminance": 0.05169
}

Semantic roles & 50–950 ramp

primary
#311EBB
secondary
#C1CD67
accent
#EF39D9
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #311EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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