#311BA0#311BA0

#311BA0 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.3% C 0.195 H 278.0°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#311BA0
RGBrgb(49, 27, 160)
HSLhsl(250, 71%, 37%)
HSVhsv(250, 83%, 63%)
CMYKcmyk(69.4%, 83.1%, 0%, 37.3%)
CIE-LABlab(23.59, 48.51, -66.90)
CIE-LCHlch(23.59, 82.63, 305.95°)
OKLaboklab(36.31% 0.027 -0.1932)
OKLCHoklch(36.31% 0.195 278)
XYZxyz(8.0017, 3.9742, 33.5963)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311BA0 #8AA01B
analogous
#1B48A0 #311BA0 #741BA0
triadic
#311BA0 #A0311B #1BA031
tetradic
#311BA0 #A01B48 #8AA01B #1BA074
square
#311BA0 #A01B48 #8AA01B #1BA074
split-complementary
#311BA0 #A0741B #48A01B
monochromatic
#110937 #21126C #311BA0 #4124D4 #6B53E2

Accessibility & contrast

On white

11.70
#311BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#311BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311BA0
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311BA0#FFFFFF#000000##FFFFFF
##311BA01.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #311ba0;
/* rgb */ color: rgb(49, 27, 160);
/* oklch */ color: oklch(36.3% 0.195 278.0);
Tailwind
colors: {
  custom: {
    50: '#7b5dbd',
    500: '#311ba0',
    950: '#000000',
  },
}
SCSS
$custom: #311ba0;
$custom-light: #7b5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#311ba0",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 249.925,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3631,
    "c": 0.19512,
    "h": 278
  },
  "luminance": 0.03975
}

Semantic roles & 50–950 ramp

primary
#311BA0
secondary
#B2C552
accent
#EE3AD0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #311BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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