#311BA8#311BA8

#311BA8 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.204 H 276.9°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#311BA8
RGBrgb(49, 27, 168)
HSLhsl(249, 72%, 38%)
HSVhsv(249, 84%, 66%)
CMYKcmyk(70.8%, 83.9%, 0%, 34.1%)
CIE-LABlab(24.52, 50.88, -70.20)
CIE-LCHlch(24.52, 86.70, 305.93°)
OKLaboklab(37.23% 0.0245 -0.2028)
OKLCHoklch(37.23% 0.204 276.9)
XYZxyz(8.7241, 4.2632, 37.4013)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311BA8 #92A81B
analogous
#1B4BA8 #311BA8 #771BA8
triadic
#311BA8 #A8311B #1BA831
tetradic
#311BA8 #A81B4B #92A81B #1BA877
square
#311BA8 #A81B4B #92A81B #1BA877
split-complementary
#311BA8 #A8771B #4BA81B
monochromatic
#120A3F #221373 #311BA8 #4124DC #6F59E4

Accessibility & contrast

On white

11.33
#311BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#311BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311BA8
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311BA8#FFFFFF#000000##FFFFFF
##311BA81.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #311ba8;
/* rgb */ color: rgb(49, 27, 168);
/* oklch */ color: oklch(37.2% 0.204 276.9);
Tailwind
colors: {
  custom: {
    50: '#7c5dc3',
    500: '#311ba8',
    950: '#000000',
  },
}
SCSS
$custom: #311ba8;
$custom-light: #7c5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#311ba8",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 249.362,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37227,
    "c": 0.20431,
    "h": 276.9
  },
  "luminance": 0.04264
}

Semantic roles & 50–950 ramp

primary
#311BA8
secondary
#B6C857
accent
#EF39D3
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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