#311ABB#311ABB

#311ABB is a dark, highly saturated blue. Relative luminance 0.050; OKLCH L 39.4% C 0.226 H 274.8°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#311ABB
RGBrgb(49, 26, 187)
HSLhsl(249, 76%, 42%)
HSVhsv(249, 86%, 73%)
CMYKcmyk(73.8%, 86.1%, 0%, 26.7%)
CIE-LABlab(26.67, 56.76, -78.01)
CIE-LCHlch(26.67, 96.47, 306.04°)
OKLaboklab(39.36% 0.0189 -0.2254)
OKLCHoklch(39.36% 0.226 274.8)
XYZxyz(10.6027, 4.9785, 47.4063)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311ABB #A4BB1A
analogous
#1A54BB #311ABB #811ABB
triadic
#311ABB #BB311A #1ABB31
tetradic
#311ABB #BB1A54 #A4BB1A #1ABB81
square
#311ABB #BB1A54 #A4BB1A #1ABB81
split-complementary
#311ABB #BB811A #54BB1A
monochromatic
#150B50 #231385 #311ABB #4930E2 #7966EA

Accessibility & contrast

On white

10.52
#311ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#311ABB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311ABB
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311ABB#FFFFFF#000000##FFFFFF
##311ABB1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046BF
Deuteranopia (green-blind)
#0038B8
Tritanopia (blue-blind)
#00506F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #311abb;
/* rgb */ color: rgb(49, 26, 187);
/* oklch */ color: oklch(39.4% 0.226 274.8);
Tailwind
colors: {
  custom: {
    50: '#815ed1',
    500: '#311abb',
    950: '#000000',
  },
}
SCSS
$custom: #311abb;
$custom-light: #815ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#311abb",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 187
  },
  "hsl": {
    "h": 248.571,
    "s": 75.587,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39357,
    "c": 0.22624,
    "h": 274.8
  },
  "luminance": 0.0498
}

Semantic roles & 50–950 ramp

primary
#311ABB
secondary
#BFCF62
accent
#F236D7
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #311ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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