#311BBB#311BBB

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

Color values

HEX#311BBB
RGBrgb(49, 27, 187)
HSLhsl(248, 75%, 42%)
HSVhsv(248, 86%, 73%)
CMYKcmyk(73.8%, 85.6%, 0%, 26.7%)
CIE-LABlab(26.80, 56.37, -77.80)
CIE-LCHlch(26.80, 96.07, 305.93°)
OKLaboklab(39.45% 0.0187 -0.2248)
OKLCHoklch(39.45% 0.226 274.7)
XYZxyz(10.6252, 5.0236, 47.4138)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311BBB #A5BB1B
analogous
#1B55BB #311BBB #811BBB
triadic
#311BBB #BB311B #1BBB31
tetradic
#311BBB #BB1B55 #A5BB1B #1BBB81
square
#311BBB #BB1B55 #A5BB1B #1BBB81
split-complementary
#311BBB #BB811B #55BB1B
monochromatic
#150C50 #231386 #311BBB #4A32E1 #7967E9

Accessibility & contrast

On white

10.47
#311BBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#311BBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311BBB
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311BBB#FFFFFF#000000##FFFFFF
##311BBB1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.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: #311bbb;
/* rgb */ color: rgb(49, 27, 187);
/* oklch */ color: oklch(39.4% 0.226 274.7);
Tailwind
colors: {
  custom: {
    50: '#815fd1',
    500: '#311bbb',
    950: '#000000',
  },
}
SCSS
$custom: #311bbb;
$custom-light: #815fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#311bbb",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 187
  },
  "hsl": {
    "h": 248.25,
    "s": 74.766,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39445,
    "c": 0.22562,
    "h": 274.7
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#311BBB
secondary
#C0CE63
accent
#F136D8
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #311BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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