#311FB3#311FB3

#311FB3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.214 H 275.3°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#311FB3
RGBrgb(49, 31, 179)
HSLhsl(247, 70%, 41%)
HSVhsv(247, 83%, 70%)
CMYKcmyk(72.6%, 82.7%, 0%, 29.8%)
CIE-LABlab(26.41, 52.38, -73.68)
CIE-LCHlch(26.41, 90.41, 305.41°)
OKLaboklab(38.9% 0.0198 -0.213)
OKLCHoklch(38.9% 0.214 275.3)
XYZxyz(9.8906, 4.8866, 43.0611)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311FB3 #A1B31F
analogous
#1F57B3 #311FB3 #7B1FB3
triadic
#311FB3 #B3311F #1FB331
tetradic
#311FB3 #B31F57 #A1B31F #1FB37B
square
#311FB3 #B31F57 #A1B31F #1FB37B
split-complementary
#311FB3 #B37B1F #57B31F
monochromatic
#140D4B #23167F #311FB3 #4833DC #7768E5

Accessibility & contrast

On white

10.62
#311FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#311FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311FB3
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311FB3#FFFFFF#000000##FFFFFF
##311FB31.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #311fb3;
/* rgb */ color: rgb(49, 31, 179);
/* oklch */ color: oklch(38.9% 0.214 275.3);
Tailwind
colors: {
  custom: {
    50: '#7f60cb',
    500: '#311fb3',
    950: '#000000',
  },
}
SCSS
$custom: #311fb3;
$custom-light: #7f60cb;
$custom-dark: #000000;
JSON
{
  "hex": "#311fb3",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 179
  },
  "hsl": {
    "h": 247.297,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38901,
    "c": 0.21393,
    "h": 275.3
  },
  "luminance": 0.04888
}

Semantic roles & 50–950 ramp

primary
#311FB3
secondary
#BECA64
accent
#ED3BD8
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #311FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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