#311FBB#311FBB

#311FBB is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.8% C 0.223 H 274.5°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#311FBB
RGBrgb(49, 31, 187)
HSLhsl(247, 72%, 43%)
HSVhsv(247, 83%, 73%)
CMYKcmyk(73.8%, 83.4%, 0%, 26.7%)
CIE-LABlab(27.35, 54.74, -76.88)
CIE-LCHlch(27.35, 94.38, 305.45°)
OKLaboklab(39.82% 0.0175 -0.2223)
OKLCHoklch(39.82% 0.223 274.5)
XYZxyz(10.7233, 5.2197, 47.4464)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FBB #A9BB1F
analogous
#1F5BBB #311FBB #7F1FBB
triadic
#311FBB #BB311F #1FBB31
tetradic
#311FBB #BB1F5B #A9BB1F #1FBB7F
square
#311FBB #BB1F5B #A9BB1F #1FBB7F
split-complementary
#311FBB #BB7F1F #5BBB1F
monochromatic
#150E52 #231687 #311FBB #4C39DE #7C6EE7

Accessibility & contrast

On white

10.27
#311FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#311FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FBB
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FBB#FFFFFF#000000##FFFFFF
##311FBB1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BF
Deuteranopia (green-blind)
#0039B8
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #311fbb;
/* rgb */ color: rgb(49, 31, 187);
/* oklch */ color: oklch(39.8% 0.223 274.5);
Tailwind
colors: {
  custom: {
    50: '#8061d1',
    500: '#311fbb',
    950: '#000000',
  },
}
SCSS
$custom: #311fbb;
$custom-light: #8061d1;
$custom-dark: #000000;
JSON
{
  "hex": "#311fbb",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 187
  },
  "hsl": {
    "h": 246.923,
    "s": 71.56,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39822,
    "c": 0.22297,
    "h": 274.5
  },
  "luminance": 0.05221
}

Semantic roles & 50–950 ramp

primary
#311FBB
secondary
#C1CD69
accent
#EE3AD9
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0C0514
muted
#7D7983

Preview Lab

Preview with #311FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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